mirror of
https://github.com/triqs/dft_tools
synced 2024-12-25 22:03:43 +01:00
cmake: in test macro, add rpath
This commit is contained in:
parent
89c1ae23d1
commit
44bd729252
@ -95,6 +95,7 @@ macro(add_all_C_tests_in_current_directory)
|
|||||||
FOREACH( TestName1 ${TestList} )
|
FOREACH( TestName1 ${TestList} )
|
||||||
STRING(REPLACE ".cpp" "" TestName ${TestName1})
|
STRING(REPLACE ".cpp" "" TestName ${TestName1})
|
||||||
add_executable( ${TestName} ${CMAKE_CURRENT_SOURCE_DIR}/${TestName}.cpp )
|
add_executable( ${TestName} ${CMAKE_CURRENT_SOURCE_DIR}/${TestName}.cpp )
|
||||||
|
triqs_set_rpath_for_target(${TestName})
|
||||||
triqs_add_test_C_simple( ${TestName} )
|
triqs_add_test_C_simple( ${TestName} )
|
||||||
if (TESTS_C_WITH_VALGRIND)
|
if (TESTS_C_WITH_VALGRIND)
|
||||||
add_test ( ${TestName}_valgrind valgrind --error-exitcode=1 ${CMAKE_CURRENT_BINARY_DIR}/${TestName})
|
add_test ( ${TestName}_valgrind valgrind --error-exitcode=1 ${CMAKE_CURRENT_BINARY_DIR}/${TestName})
|
||||||
|
Loading…
Reference in New Issue
Block a user