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:
parent
c9122ff84b
commit
f6b1ddfac6
1 changed files with 12 additions and 3 deletions
|
@ -142,9 +142,18 @@ set_target_properties(run_test_suite
|
||||||
PROPERTIES
|
PROPERTIES
|
||||||
RUNTIME_OUTPUT_DIRECTORY "${TESTSUITE_OUTPUT_DIR}"
|
RUNTIME_OUTPUT_DIRECTORY "${TESTSUITE_OUTPUT_DIR}"
|
||||||
)
|
)
|
||||||
add_custom_target(test_suite "${TESTSUITE_OUTPUT_DIR}/run_test_suite"
|
if(WIN32)
|
||||||
|
add_custom_target(test_suite "run_test_suite.exe"
|
||||||
DEPENDS run_test_suite
|
DEPENDS run_test_suite
|
||||||
COMMENT "Running the full FlightGear 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)
|
||||||
|
|
||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue