Skip to content

Commit d4492a5

Browse files
committed
add the CMake
1 parent 4b9ac38 commit d4492a5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/module_basis/module_pw/test/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
add_definitions(-D__NORMAL)
2+
if (USE_CUDA)
3+
list (APPEND FFT_SRC ../../../module_base/module_fft/fft_cuda.cpp)
4+
endif()
25
AddTest(
36
TARGET pw_test
47
LIBS parameter ${math_libs} planewave device
58
SOURCES ../../../module_base/matrix.cpp ../../../module_base/complexmatrix.cpp ../../../module_base/matrix3.cpp ../../../module_base/tool_quit.cpp
69
../../../module_base/mymath.cpp ../../../module_base/timer.cpp ../../../module_base/memory.cpp ../../../module_base/blas_connector.cpp
710
../../../module_base/libm/branred.cpp ../../../module_base/libm/sincos.cpp
811
../../../module_base/module_fft/fft_base.cpp ../../../module_base/module_fft/fft_temp.cpp ../../../module_base/module_fft/fft_cpu.cpp
12+
${FFT_SRC}
913
# ../../../module_psi/kernels/psi_memory_op.cpp
1014
../../../module_base/module_device/memory_op.cpp
1115
depend_mock.cpp pw_test.cpp test1-1-1.cpp test1-1-2.cpp test1-2.cpp test1-3.cpp test1-4.cpp test1-5.cpp

0 commit comments

Comments
 (0)