diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-11-18 14:41:47 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-11-18 14:41:47 -0800 |
commit | 4cf20c34489a9f3a53cece13ec07cba44aa44487 (patch) | |
tree | 90c59e8fe9f6707b626706b608940a5111414f1d /CMakeLists.txt | |
parent | 74b15922f306872d948e722d6f2a0bb18f978436 (diff) | |
download | subsurface-4cf20c34489a9f3a53cece13ec07cba44aa44487.tar.gz |
Cmake: add SUBSURFACE_MOBILE definition earlier
This way it is set when subsurface-core is built.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c59d13e55..2d2248f5b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -210,6 +210,7 @@ if(SUBSURFACE_MOBILE) set(QT_QUICK_LIB Qt5::Quick) set(QT_LOCATION_PKG Location) set(QT_LOCATION_LIB Qt5::Positioning) + add_definitions(-DSUBSURFACE_MOBILE) endif() if(ANDROID) set(ANDROID_PKG AndroidExtras) @@ -363,7 +364,6 @@ if(SUBSURFACE_MOBILE) subsurface-mobile-main.cpp subsurface-mobile-helper.cpp ) - add_definitions(-DSUBSURFACE_MOBILE) qt5_add_resources(MOBILE_RESOURCES qt-mobile/qml/mobile-resources.qrc) if(ANDROID) add_library(subsurface-mobile SHARED ${MOBILE_SRC} ${SUBSURFACE_PKG} ${SUBSURFACE_RESOURCES} ${MOBILE_RESOURCES}) |