aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-05 16:04:36 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-05 16:05:19 -0800
commit662e2a0ff3856982e98281de309c5a06b789f4df (patch)
tree47d59038a42d8a0e5b59a615d5cdc48cf2ee44cc
parent332e484d6816f13e99e9cd862446caf5d7b1c38c (diff)
downloadsubsurface-662e2a0ff3856982e98281de309c5a06b789f4df.tar.gz
Profile: add define when building subsurface-mobile
This way we can conditionally compile out more dependencies on desktop widgets. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--profile-widget/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/profile-widget/CMakeLists.txt b/profile-widget/CMakeLists.txt
index f0a1d8439..73807fbd7 100644
--- a/profile-widget/CMakeLists.txt
+++ b/profile-widget/CMakeLists.txt
@@ -14,6 +14,9 @@ set(SUBSURFACE_PROFILE_LIB_SRCS
tankitem.cpp
)
source_group("Subsurface Profile" FILES ${SUBSURFACE_PROFILE_LIB_SRCS})
+if (SUBSURFACE_MOBILE)
+ add_definitions(-DSUBSURFACE_MOBILE=1)
+endif()
add_library(subsurface_profile STATIC ${SUBSURFACE_PROFILE_LIB_SRCS})
-target_link_libraries(subsurface_profile ${QT_LIBRARIES}) \ No newline at end of file
+target_link_libraries(subsurface_profile ${QT_LIBRARIES})