summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar jan Iversen <jan@casacondor.com>2019-12-22 13:15:10 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-12-24 06:18:36 +0900
commit41d6ff96c173e67654772537eeff3842dd024a53 (patch)
tree16a933d6c10a73f7ab0f07f8f62abeaf7f0502bb
parentd1490776e2375274b047043f9bda497bab196f61 (diff)
downloadsubsurface-41d6ff96c173e67654772537eeff3842dd024a53.tar.gz
build-system: move qmlprofile to profile-widgets/CMakeLists.txt
qmlprofile.* is part of profile-widget, and are now defined in the the corresponding CMakeLists.txt, and thereby making the central CMakeLists.txt cleaner. Signed-off-by: Jan Iversen <jan@casacondor.com>
-rw-r--r--CMakeLists.txt1
-rw-r--r--profile-widget/CMakeLists.txt8
2 files changed, 7 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d049359e4..dd005a61d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -304,7 +304,6 @@ if (SUBSURFACE_TARGET_EXECUTABLE MATCHES "MobileExecutable")
mobile-widgets/qml/kirigami/src/libkirigami/tabletmodewatcher.cpp
subsurface-mobile-main.cpp
subsurface-helper.cpp
- profile-widget/qmlprofile.cpp
map-widget/qmlmapwidgethelper.cpp
)
include_directories(${CMAKE_SOURCE_DIR}/mobile-widgets/qml/kirigami/src/libkirigami)
diff --git a/profile-widget/CMakeLists.txt b/profile-widget/CMakeLists.txt
index 9376eede9..2f5ea0378 100644
--- a/profile-widget/CMakeLists.txt
+++ b/profile-widget/CMakeLists.txt
@@ -20,12 +20,18 @@ set(SUBSURFACE_PROFILE_LIB_SRCS
divetooltipitem.h
profilewidget2.cpp
profilewidget2.h
-# qmlprofile.h
ruleritem.cpp
ruleritem.h
tankitem.cpp
tankitem.h
)
+if (SUBSURFACE_TARGET_EXECUTABLE MATCHES "MobileExecutable")
+set(SUBSURFACE_PROFILE_LIB_SRCS
+ ${SUBSURFACE_PROFILE_LIB_SRCS}
+ qmlprofile.cpp
+ qmlprofile.h
+)
+endif ()
source_group("Subsurface Profile" FILES ${SUBSURFACE_PROFILE_LIB_SRCS})
add_library(subsurface_profile STATIC ${SUBSURFACE_PROFILE_LIB_SRCS})