mirror of
https://github.com/triqs/dft_tools
synced 2025-01-03 18:16:03 +01:00
Correction to previous commit, run c++ tests in proper test directory
This commit is contained in:
parent
81346f5e4d
commit
3b1b412b4e
@ -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}")
|
||||
|
Loading…
Reference in New Issue
Block a user