From efc573cb321cc750a3049c066545d009e5d35744 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Wed, 25 Dec 2019 16:30:13 +0100 Subject: 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 --- tests/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/CMakeLists.txt') 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 -- cgit v1.2.3-70-g09d2