diff --git a/source/module_hamilt_lcao/module_gint/CMakeLists.txt b/source/module_hamilt_lcao/module_gint/CMakeLists.txt index 7f0be6821e..e0e1e2e4cb 100644 --- a/source/module_hamilt_lcao/module_gint/CMakeLists.txt +++ b/source/module_hamilt_lcao/module_gint/CMakeLists.txt @@ -1,4 +1,5 @@ #add_subdirectory(kernels/cuda) +if(ENABLE_LCAO) list(APPEND objects gint.cpp @@ -69,4 +70,6 @@ IF (BUILD_TESTING) if(ENABLE_MPI) add_subdirectory(test) endif() +endif() + endif() \ No newline at end of file diff --git a/source/module_hamilt_lcao/module_hcontainer/CMakeLists.txt b/source/module_hamilt_lcao/module_hcontainer/CMakeLists.txt index d6f58c7182..65db746a84 100644 --- a/source/module_hamilt_lcao/module_hcontainer/CMakeLists.txt +++ b/source/module_hamilt_lcao/module_hcontainer/CMakeLists.txt @@ -1,3 +1,5 @@ +if(ENABLE_LCAO) + list(APPEND objects base_matrix.cpp atom_pair.cpp @@ -22,4 +24,6 @@ IF (BUILD_TESTING) if(ENABLE_MPI) add_subdirectory(test) endif() +endif() + endif() \ No newline at end of file diff --git a/source/module_hamilt_pw/hamilt_pwdft/operator_pw/CMakeLists.txt b/source/module_hamilt_pw/hamilt_pwdft/operator_pw/CMakeLists.txt index c8370d1083..83f7955dbb 100644 --- a/source/module_hamilt_pw/hamilt_pwdft/operator_pw/CMakeLists.txt +++ b/source/module_hamilt_pw/hamilt_pwdft/operator_pw/CMakeLists.txt @@ -7,12 +7,13 @@ list(APPEND operator_ks_pw_srcs velocity_pw.cpp ) -add_library( - operator_ks_pw - OBJECT - ${operator_ks_pw_srcs} -) +# this library is included in hamilt_pwdft now +#add_library( +# operator_ks_pw +# OBJECT +# ${operator_ks_pw_srcs} +#) -if(ENABLE_COVERAGE) - add_coverage(operator_ks_pw) -endif() +#if(ENABLE_COVERAGE) +# add_coverage(operator_ks_pw) +#endif()