3
0
mirror of https://github.com/triqs/dft_tools synced 2024-06-29 08:24:54 +02:00

Correction to previous commit, run c++ tests in proper test directory

This commit is contained in:
Nils Wentzell 2019-08-02 14:24:21 -04:00
parent 81346f5e4d
commit 3b1b412b4e

View File

@ -14,7 +14,7 @@ foreach(test ${all_tests})
add_executable(${test_name} ${test})
set_property(TARGET ${test_name} PROPERTY RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${test_dir})
target_link_libraries(${test_name} app4triqs_c triqs::gtest project_warnings)
add_test(${test_name} ${test_name})
add_test(NAME ${test_name} COMMAND ${test_name} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${test_dir})
# Run clang-tidy if found
if(CLANG_TIDY_EXECUTABLE)
set_target_properties(${test_name} PROPERTIES CXX_CLANG_TIDY "${CLANG_TIDY_EXECUTABLE}")