mirror of
https://github.com/reactos/CMake.git
synced 2024-12-13 06:16:49 +00:00
370bf55415
* The ALIAS name must match a validity regex. * Executables and libraries may be aliased. * An ALIAS acts immutable. It can not be used as the lhs of target_link_libraries or other commands. * An ALIAS can be used with add_custom_command, add_custom_target, and add_test in the same way regular targets can. * The target of an ALIAS can be retrieved with the ALIASED_TARGET target property. * An ALIAS does not appear in the generated buildsystem. It is kept separate from cmMakefile::Targets for that reason. * A target may have multiple aliases. * An ALIAS target may not itself have an alias. * An IMPORTED target may not have an alias. * An ALIAS may not be exported or imported.
14 lines
407 B
CMake
14 lines
407 B
CMake
cmake_minimum_required (VERSION 2.6)
|
|
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")
|