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>
This commit is contained in:
jan Iversen 2019-12-25 16:30:13 +01:00 committed by Dirk Hohndel
parent f92daa16ef
commit efc573cb32

View file

@ -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