1
0
Fork 0

TestSuite: Windows support for the run_test_suite custom cmake target.

A custom add_custom_target() function is required to allow the test suite to be
executed by cmake under MS Windows.
This commit is contained in:
Edward d'Auvergne 2016-10-17 19:11:44 +02:00
parent c9122ff84b
commit f6b1ddfac6

View file

@ -142,9 +142,18 @@ set_target_properties(run_test_suite
PROPERTIES
RUNTIME_OUTPUT_DIRECTORY "${TESTSUITE_OUTPUT_DIR}"
)
add_custom_target(test_suite "${TESTSUITE_OUTPUT_DIR}/run_test_suite"
DEPENDS run_test_suite
COMMENT "Running the full FlightGear test-suite.")
if(WIN32)
add_custom_target(test_suite "run_test_suite.exe"
DEPENDS run_test_suite
WORKING_DIRECTORY "${TESTSUITE_OUTPUT_DIR}/${CMAKE_BUILD_TYPE}"
COMMENT "Running the full FlightGear test-suite."
)
else()
add_custom_target(test_suite "${TESTSUITE_OUTPUT_DIR}/run_test_suite"
DEPENDS run_test_suite
COMMENT "Running the full FlightGear test-suite."
)
endif(WIN32)
#-----------------------------------------------------------------------------