mirror of
https://github.com/reactos/CMake.git
synced 2024-11-25 12:40:06 +00:00
4fcb97eaac
This new test detects if custom command failures are detected with launchers.
20 lines
416 B
CMake
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)
|