Packaging: Make check for theme.qrc more specific #5957

Extracted and adjusted from packaging.diff by @jnweiger and @dschmidt
This commit is contained in:
Christian Kamm 2017-09-22 10:28:08 +02:00 committed by Roeland Jago Douma
parent 08bc21937b
commit 96a6d64500
No known key found for this signature in database
GPG key ID: F941078878347C0C

View file

@ -5,7 +5,7 @@ add_subdirectory(updater)
#TODO Move resources files
qt_add_resources(MIRALL_RC_SRC ../../client.qrc)
if ( IS_DIRECTORY ${OEM_THEME_DIR} )
if (EXISTS "${OEM_THEME_DIR}/theme.qrc")
qt_add_resources(MIRALL_RC_SRC ${OEM_THEME_DIR}/theme.qrc)
set(theme_dir ${OEM_THEME_DIR}/theme)
else()