Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,7 @@ endif()
configure_file(cmake/git_hash.c.in git_hash.c @ONLY)
add_subdirectory(src/lib)
add_subdirectory(src/bin)
add_subdirectory(tests)

write_basic_package_version_file(
"${PROJECT_BINARY_DIR}/tmLQCDConfigVersion.cmake"
Expand Down
20 changes: 10 additions & 10 deletions src/bin/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
list(APPEND tmlqcd_prog "invert;benchmark;deriv_mg_tune;hmc_tm;offline_measurement")
list(APPEND tmlqcd_prog
"invert;benchmark;deriv_mg_tune;hmc_tm;offline_measurement")

include_directories(
$<BUILD_INTERFACE:${CMAKE_BINARY_DIR}>
Expand All @@ -18,23 +19,22 @@ foreach(_prog ${tmlqcd_prog})
LINKER_LANGUAGE "CXX")
endforeach()

# check_locallity; compilation failure scalar_prod_r_test: compilation error
# header file missing test_eigenvalues: observables.h missing
if(TM_ENABLE_TESTS)
list(
APPEND
tmlqcd_test_prog
"check_locallity.c;hopping_test.cscalar_prod_r_test.c;test_eigenvalues.c;test_lemon.c"
)
list(APPEND tmlqcd_test_prog "hopping_test")
if(TM_USE_LEMON)
list(APPEND tmlqcd_test_prog test_lemon.c)
list(APPEND tmlqcd_test_prog "test_lemon")
endif()
if(TN_USE_QPHIX)
list(APPEND tmlqcd_test_prog qphix_test_Dslash.c)
list(APPEND tmlqcd_test_prog "qphix_test_Dslash")
endif()

foreach(_prog ${tmlqcd_test_prog})
add_executable(${_prog} "${CMAKE_SOURCE_DIR}/src/bin/tests/${_prog}.c")

target_link_libraries(${_prog} PUBLIC hmc)
target_include_directories(${_prog}
PUBLIC "${CMAKE_SOURCE_DIR}/src/lib/test")
target_link_libraries(${_prog} PUBLIC tmlqcd)
set_target_properties(
${_prog}
PROPERTIES IMPORTED_LINK_INTERFACE_LANGUAGES "CXX"
Expand Down
11 changes: 5 additions & 6 deletions src/lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -420,10 +420,10 @@ target_link_libraries(
$<$<BOOL:${TM_USE_LEMON}>:lemon::lemon>
${LAPACK_LIBRARIES}
${BLAS_LIBRARIES}
$<$<BOOL:${TM_USE_MPI}>:MPI::MPI_C
MPI::MPI_CXX>
$<$<BOOL:${TM_USE_OMP}>:OpenMP::OpenMP_C
OpenMP::OpenMP_CXX>
$<$<BOOL:${TM_USE_MPI}>:MPI::MPI_C>
$<$<BOOL:${TM_USE_MPI}>:MPI::MPI_CXX>
$<$<BOOL:${TM_USE_OMP}>:OpenMP::OpenMP_C>
$<$<BOOL:${TM_USE_OMP}>:OpenMP::OpenMP_CXX>
m)

target_compile_definitions(
Expand All @@ -449,8 +449,7 @@ install(

install(FILES "${CMAKE_SOURCE_DIR}/src/lib/include/tmLQCD.h"
"${CMAKE_SOURCE_DIR}/src/lib/include/tmlqcd_config.h"
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}"
)
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}")

install(FILES "${CMAKE_BINARY_DIR}/tmlqcd_config_internal.h"
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}")
100 changes: 0 additions & 100 deletions src/lib/buffers/Makefile.in

This file was deleted.

80 changes: 0 additions & 80 deletions src/lib/cu/Makefile.in

This file was deleted.

100 changes: 0 additions & 100 deletions src/lib/init/Makefile.in

This file was deleted.

1 change: 0 additions & 1 deletion src/lib/init/init_stout_smear_vars.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ int init_stout_smear_vars(const int V, const int stout_no_iter) {

/* int i, k, x, mu; */


if (g_exposu3_no_c == 0) init_exposu3();

/*
Expand Down
Loading
Loading