2018-03-22 18:11:39 +01:00
|
|
|
# Copy reference 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)
|
|
|
|
|
|
|
|
foreach(t ${all_tests})
|
|
|
|
add_executable(${t} ${CMAKE_CURRENT_SOURCE_DIR}/${t}.cpp)
|
|
|
|
target_link_libraries(${t} app4triqs_c gtest)
|
|
|
|
add_test(${t} ${CMAKE_CURRENT_BINARY_DIR}/${t})
|
2018-03-25 19:00:54 +02:00
|
|
|
# Run clang-tidy if found
|
|
|
|
#if(CLANG_TIDY_EXECUTABLE)
|
|
|
|
#set_target_properties(${t} PROPERTIES CXX_CLANG_TIDY "${CLANG_TIDY_EXECUTABLE}")
|
|
|
|
#endif()
|
|
|
|
## Run cppcheck if found
|
|
|
|
#if(CPPCHECK_EXECUTABLE)
|
|
|
|
#add_custom_command(
|
|
|
|
#TARGET ${t}
|
|
|
|
#COMMAND ${CPPCHECK_EXECUTABLE}
|
|
|
|
#--enable=warning,style,performance,portability
|
|
|
|
#--std=c++14
|
|
|
|
#--template=gcc
|
|
|
|
#--verbose
|
|
|
|
#--quiet
|
|
|
|
#${CMAKE_CURRENT_SOURCE_DIR}/${t}.cpp
|
|
|
|
#)
|
|
|
|
#endif()
|
2018-03-22 18:11:39 +01:00
|
|
|
endforeach()
|