From 41d6ff96c173e67654772537eeff3842dd024a53 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Sun, 22 Dec 2019 13:15:10 +0100 Subject: 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 --- profile-widget/CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'profile-widget/CMakeLists.txt') 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}) -- cgit v1.2.3-70-g09d2