mirror of
https://github.com/triqs/dft_tools
synced 2024-07-11 13:53:47 +02:00
![Nils Wentzell](/assets/img/avatar_default.png)
-consistent indends in all cmake files -add static analyzer checks with both cppcheck and clang-tidy -add dynamic analyzer checks with Address Sanitizer and option ASAN -add dynamic analyzer checks with Undefined Behavior Sanitizer and option UBSAN -Further Cleaning and Comments
17 lines
561 B
CMake
17 lines
561 B
CMake
# Copy h5 files to binary dir
|
|
file(GLOB all_h5_files *.h5)
|
|
file(COPY ${all_h5_files} DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
set(all_tests Toto chain)
|
|
|
|
foreach(t ${all_tests})
|
|
add_test(NAME ${t} COMMAND python ${CMAKE_CURRENT_SOURCE_DIR}/${t}.py)
|
|
endforeach()
|
|
|
|
# Set the PythonPath : put the build dir first (in case there is an installed version).
|
|
set_property(TEST ${all_tests} PROPERTY
|
|
ENVIRONMENT
|
|
PYTHONPATH=${CMAKE_BINARY_DIR}/python:$ENV{PYTHONPATH}
|
|
LD_PRELOAD=$<$<BOOL:${ASAN}>:${ASAN_RT_LIBRARY}>:$<$<BOOL:${UBSAN}>:${UBSAN_RT_LIBRARY}>
|
|
)
|