cmake/Tests/CTestTestCycle/CMakeLists.txt

14 lines
372 B
CMake
Raw Normal View History

2021-09-14 00:13:48 +02:00
cmake_minimum_required (VERSION 2.8.12)
2010-11-13 01:00:53 +02:00
project(CTestTestCycle)
include(CTest)
add_executable (simple simple.cxx)
add_test (one simple)
add_test (two simple)
add_test (three simple)
# Add cyclical test dependency
set_tests_properties(one PROPERTIES DEPENDS "two")
set_tests_properties(two PROPERTIES DEPENDS "three")
set_tests_properties(three PROPERTIES DEPENDS "one")