From 662e2a0ff3856982e98281de309c5a06b789f4df Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 5 Nov 2015 16:04:36 -0800 Subject: Profile: add define when building subsurface-mobile This way we can conditionally compile out more dependencies on desktop widgets. Signed-off-by: Dirk Hohndel --- profile-widget/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'profile-widget') 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}) -- cgit v1.2.3-70-g09d2