-
Markus Blatt authored
Now make test works in all directories. [[Imported from SVN: r6679]]
Markus Blatt authoredNow make test works in all directories. [[Imported from SVN: r6679]]
BuildTests.cmake.in 524 B
MACRO(get_directory_test_target _target _dir)
message("$_dir")
string(REPLACE "@CMAKE_BINARY_DIR@" "" _relative_dir "${_dir}")
message("$_relative_dir")
string(REPLACE "/" "_" ${_target} "${_relative_dir}")
message("target=${${_target}}")
ENDMACRO(get_directory_test_target _target _dir)
get_directory_test_target(_build_test_target "@CMAKE_CURRENT_BINARY_DIR@")
message("binary_dir=@CMAKE_CURRENT_BINARY_DIR@")
execute_process(COMMAND @CMAKE_COMMAND@ --build @CMAKE_BINARY_DIR@
--target ${_build_test_target})