summaryrefslogtreecommitdiffstats
path: root/Tests/CTestTestDepends/CMakeLists.txt
blob: 462ad8c7a89c8798bf2d4aba389e1f9b8854ac13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
cmake_minimum_required (VERSION 2.8.12)
project(CTestTestDepends)
include(CTest)

add_executable (simple simple.cxx)
add_executable (TestExe::Simple ALIAS simple)
add_test (NAME one COMMAND TestExe::Simple)
add_test (two simple)
add_test (three simple)

# Add redundant (but not cyclical) dependencies
set_tests_properties(two PROPERTIES DEPENDS "one")
set_tests_properties(three PROPERTIES DEPENDS "one;two")