Debian Codegraph @

build_tooling/cmake/tangent/ctest_helpers.cmake

raw
1 # Add a target test.<test_name> which depends on the program of the same name,
2 # allows us to use the build system to run a test and build all it's
3 # dependencies
4 function(add_test_target test_name)
5 add_custom_target(
6 test.${test_name}
7 COMMAND ${test_name}
8 DEPENDS ${test_name}
9 WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
10 endfunction()