Cmake: add SUBSURFACE_MOBILE definition earlier

This way it is set when subsurface-core is built.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-11-18 14:41:47 -08:00
parent 74b15922f3
commit 4cf20c3448

View file

@ -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})