Debian Codegraph @

cmake/Modules/MacroAddTest.cmake

raw
1 # - MACRO_ADD_TEST(<args>)
2 #
3 # Calls add_test() with all the <args> but if on Win32 or Cygwin also adds the
4 # directory where the Cgreen library is generated to the path so that it will
5 # be used when running the test
6 #
7 # @thoni56/Thomas Nilefalk 2015-09-13
8
9 macro (macro_add_test)
10 add_test(${ARGN})
11 if (CYGWIN OR WIN32)
12 set_tests_properties(${ARGV1} PROPERTIES ENVIRONMENT PATH=${PROJECT_BINARY_DIR}/src:$ENV{PATH})
13 endif ()
14 endmacro(macro_add_test)