CMake/Tests/CTestTestLaunchers/launcher_test_project/CMakeLists.txt
Nils Gladitz 4fcb97eaac Tests: Add test for CTEST_USE_LAUNCHERS capture of custom commands
This new test detects if custom command failures are detected with
launchers.
2013-10-31 09:29:55 -04:00

20 lines
416 B
CMake

cmake_minimum_required(VERSION 2.8.12)
project(launcher_test_project)
include(CTest)
add_custom_command(
OUTPUT test1.txt
COMMAND ${CMAKE_COMMAND}
ARGS -DTESTID=1 -P "${CMAKE_CURRENT_SOURCE_DIR}/command.cmake"
)
add_custom_command(
OUTPUT test2.txt
COMMAND ${CMAKE_COMMAND}
ARGS -DTESTID=2 -P "${CMAKE_CURRENT_SOURCE_DIR}/command.cmake"
)
add_custom_target(mytarget ALL DEPENDS test1.txt test2.txt)