summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-18 14:41:47 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-18 14:41:47 -0800
commit4cf20c34489a9f3a53cece13ec07cba44aa44487 (patch)
tree90c59e8fe9f6707b626706b608940a5111414f1d /CMakeLists.txt
parent74b15922f306872d948e722d6f2a0bb18f978436 (diff)
downloadsubsurface-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.txt2
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})