cmake/Tests/CTestTestCycle/CMakeLists.txt

14 lines
369 B
CMake
Raw Normal View History

2024-11-11 15:18:55 +01:00
cmake_minimum_required(VERSION 3.10)
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")