aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar jan Iversen <jan@casacondor.com>2019-12-25 16:30:13 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-12-27 05:40:26 +0900
commitefc573cb321cc750a3049c066545d009e5d35744 (patch)
tree248ca91ed31aad6a4925bcc699cfcafdab2878ab
parentf92daa16ef2490a2675941dc71d3b3a063261f68 (diff)
downloadsubsurface-efc573cb321cc750a3049c066545d009e5d35744.tar.gz
tests: activate TestPlannerShared
Use updated CMakeLists to activate TestPlannerShared but only for mobile builds !! This is due to the fact that commands are currently not available for mobile builds. Using the mobile library version of qt-mobile secured diveplannermodel.cpp is compiled without referencces to commands. Signed-off-by: Jan Iversen <jan@casacondor.com>
-rw-r--r--tests/CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index c5c611095..1ae98574f 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -116,6 +116,10 @@ TEST(TestPicture testpicture.cpp)
TEST(TestMerge testmerge.cpp)
TEST(TestTagList testtaglist.cpp)
+if (SUBSURFACE_TARGET_EXECUTABLE MATCHES "MobileExecutable")
+TEST(TestPlannerShared testplannershared.cpp)
+endif()
+
TEST(TestQPrefCloudStorage testqPrefCloudStorage.cpp)
TEST(TestQPrefDisplay testqPrefDisplay.cpp)
TEST(TestQPrefDiveComputer testqPrefDiveComputer.cpp)
@@ -150,6 +154,10 @@ add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND}
TestMerge
TestTagList
+if (SUBSURFACE_TARGET_EXECUTABLE MATCHES "MobileExecutable")
+ TestPlannerShared
+endif()
+
TestQPrefCloudStorage
TestQPrefDisplay
TestQPrefDiveComputer