tests: fix cmake syntax confusion

You cannot have a conditional in the middle of a list. I should have
caught this in review.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2019-12-28 08:46:45 -08:00
parent e80c27a2bd
commit cb3561ae85

View file

@ -138,6 +138,9 @@ TEST(TestQPrefUnits testqPrefUnits.cpp)
TEST(TestQPrefUpdateManager testqPrefUpdateManager.cpp) TEST(TestQPrefUpdateManager testqPrefUpdateManager.cpp)
add_test(NAME TestQML COMMAND $<TARGET_FILE:TestQML> -input ${SUBSURFACE_SOURCE}/tests) add_test(NAME TestQML COMMAND $<TARGET_FILE:TestQML> -input ${SUBSURFACE_SOURCE}/tests)
if (SUBSURFACE_TARGET_EXECUTABLE MATCHES "MobileExecutable")
set(TEST_PLANNER_SHARDE TestPlannerShared)
endif()
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND}
DEPENDS DEPENDS
@ -153,11 +156,7 @@ add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND}
TestPicture TestPicture
TestMerge TestMerge
TestTagList TestTagList
${TEST_PLANNER_SHARED}
if (SUBSURFACE_TARGET_EXECUTABLE MATCHES "MobileExecutable")
TestPlannerShared
endif()
TestQPrefCloudStorage TestQPrefCloudStorage
TestQPrefDisplay TestQPrefDisplay
TestQPrefDiveComputer TestQPrefDiveComputer