Skip to content

Commit 83326b1

Browse files
committed
Fix test compilation
1 parent f8937b2 commit 83326b1

File tree

7 files changed

+27
-23
lines changed

7 files changed

+27
-23
lines changed

source/module_base/test/CMakeLists.txt

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ AddTest(
1818
AddTest(
1919
TARGET base_tool_quit
2020
LIBS parameter
21-
SOURCES tool_quit_test.cpp ../tool_quit.cpp ../global_variable.cpp ../global_file.cpp ../global_function.cpp ../memory.cpp ../timer.cpp
21+
SOURCES tool_quit_test.cpp ../tool_quit.cpp ../global_variable.cpp ../global_file.cpp ../global_function.cpp ../memory.cpp ../timer.cpp ../blas_connector.cpp
2222
)
2323
AddTest(
2424
TARGET base_tool_check
2525
LIBS parameter
26-
SOURCES tool_check_test.cpp ../tool_check.cpp ../tool_quit.cpp ../global_variable.cpp ../global_file.cpp ../global_function.cpp ../memory.cpp ../timer.cpp
26+
SOURCES tool_check_test.cpp ../tool_check.cpp ../tool_quit.cpp ../global_variable.cpp ../global_file.cpp ../global_function.cpp ../memory.cpp ../timer.cpp ../blas_connector.cpp
2727
)
2828
AddTest(
2929
TARGET base_memory
@@ -32,7 +32,7 @@ AddTest(
3232
ADDTest(
3333
TARGET base_global_function
3434
LIBS parameter ${math_libs}
35-
SOURCES global_function_test.cpp ../global_function.cpp ../tool_quit.cpp ../global_variable.cpp ../global_file.cpp ../memory.cpp ../timer.cpp
35+
SOURCES global_function_test.cpp ../global_function.cpp ../tool_quit.cpp ../global_variable.cpp ../global_file.cpp ../memory.cpp ../timer.cpp ../blas_connector.cpp
3636
)
3737
AddTest(
3838
TARGET base_vector3
@@ -42,7 +42,7 @@ AddTest(
4242
AddTest(
4343
TARGET base_matrix3
4444
LIBS parameter ${math_libs}
45-
SOURCES matrix3_test.cpp ../matrix3.cpp ../matrix.cpp ../tool_quit.cpp ../global_variable.cpp ../global_file.cpp ../global_function.cpp ../memory.cpp ../timer.cpp
45+
SOURCES matrix3_test.cpp ../matrix3.cpp ../matrix.cpp ../tool_quit.cpp ../global_variable.cpp ../global_file.cpp ../global_function.cpp ../memory.cpp ../timer.cpp ../blas_connector.cpp
4646
)
4747
AddTest(
4848
TARGET base_intarray
@@ -57,12 +57,12 @@ AddTest(
5757
AddTest(
5858
TARGET base_matrix
5959
LIBS parameter ${math_libs}
60-
SOURCES matrix_test.cpp ../matrix.cpp ../tool_quit.cpp ../global_variable.cpp ../global_file.cpp ../global_function.cpp ../memory.cpp ../timer.cpp
60+
SOURCES matrix_test.cpp ../matrix.cpp ../tool_quit.cpp ../global_variable.cpp ../global_file.cpp ../global_function.cpp ../memory.cpp ../timer.cpp ../blas_connector.cpp
6161
)
6262
AddTest(
6363
TARGET base_complexarray
6464
LIBS parameter
65-
SOURCES complexarray_test.cpp ../complexarray.cpp ../tool_quit.cpp ../global_variable.cpp ../global_file.cpp ../global_function.cpp ../memory.cpp ../timer.cpp
65+
SOURCES complexarray_test.cpp ../complexarray.cpp ../tool_quit.cpp ../global_variable.cpp ../global_file.cpp ../global_function.cpp ../memory.cpp ../timer.cpp ../blas_connector.cpp
6666
)
6767
AddTest(
6868
TARGET base_complexmatrix
@@ -82,19 +82,19 @@ AddTest(
8282
AddTest(
8383
TARGET base_ylmreal
8484
LIBS parameter ${math_libs} device
85-
SOURCES math_ylmreal_test.cpp ../math_ylmreal.cpp ../complexmatrix.cpp ../global_variable.cpp ../ylm.cpp ../realarray.cpp ../timer.cpp ../matrix.cpp ../vector3.h
85+
SOURCES math_ylmreal_test.cpp ../math_ylmreal.cpp ../complexmatrix.cpp ../global_variable.cpp ../ylm.cpp ../realarray.cpp ../timer.cpp ../blas_connector.cpp ../matrix.cpp ../vector3.h
8686
../parallel_reduce.cpp ../parallel_global.cpp ../parallel_comm.cpp ../parallel_common.cpp
8787
../memory.cpp ../libm/branred.cpp ../libm/sincos.cpp
8888
)
8989
AddTest(
9090
TARGET base_math_sphbes
9191
LIBS parameter
92-
SOURCES math_sphbes_test.cpp ../math_sphbes.cpp ../timer.cpp
92+
SOURCES math_sphbes_test.cpp ../math_sphbes.cpp ../timer.cpp ../blas_connector.cpp
9393
)
9494
AddTest(
9595
TARGET base_mathzone
9696
LIBS parameter ${math_libs}
97-
SOURCES mathzone_test.cpp ../matrix3.cpp ../matrix.cpp ../tool_quit.cpp ../global_variable.cpp ../global_file.cpp ../global_function.cpp ../memory.cpp ../timer.cpp
97+
SOURCES mathzone_test.cpp ../matrix3.cpp ../matrix.cpp ../tool_quit.cpp ../global_variable.cpp ../global_file.cpp ../global_function.cpp ../memory.cpp ../timer.cpp ../blas_connector.cpp
9898
)
9999
AddTest(
100100
TARGET base_mathzone_add1
@@ -104,7 +104,7 @@ AddTest(
104104
AddTest(
105105
TARGET base_math_polyint
106106
LIBS parameter
107-
SOURCES math_polyint_test.cpp ../math_polyint.cpp ../realarray.cpp ../timer.cpp
107+
SOURCES math_polyint_test.cpp ../math_polyint.cpp ../realarray.cpp ../timer.cpp ../blas_connector.cpp
108108
)
109109
AddTest(
110110
TARGET base_gram_schmidt_orth
@@ -119,12 +119,12 @@ AddTest(
119119
AddTest(
120120
TARGET base_inverse_matrix
121121
LIBS parameter ${math_libs}
122-
SOURCES inverse_matrix_test.cpp ../inverse_matrix.cpp ../complexmatrix.cpp ../matrix.cpp ../timer.cpp
122+
SOURCES inverse_matrix_test.cpp ../inverse_matrix.cpp ../complexmatrix.cpp ../matrix.cpp ../timer.cpp ../blas_connector.cpp
123123
)
124124
AddTest(
125125
TARGET base_mymath
126126
LIBS parameter
127-
SOURCES mymath_test.cpp ../mymath.cpp ../timer.cpp
127+
SOURCES mymath_test.cpp ../mymath.cpp ../timer.cpp ../blas_connector.cpp
128128
)
129129
AddTest(
130130
TARGET base_container
@@ -135,7 +135,7 @@ AddTest(
135135
AddTest(
136136
TARGET base_math_chebyshev
137137
LIBS parameter ${math_libs}
138-
SOURCES math_chebyshev_test.cpp ../math_chebyshev.cpp ../tool_quit.cpp ../global_variable.cpp ../timer.cpp ../global_file.cpp ../global_function.cpp ../memory.cpp
138+
SOURCES math_chebyshev_test.cpp ../math_chebyshev.cpp ../tool_quit.cpp ../global_variable.cpp ../timer.cpp ../blas_connector.cpp ../global_file.cpp ../global_function.cpp ../memory.cpp
139139
)
140140

141141
AddTest(
@@ -159,7 +159,7 @@ AddTest(
159159
AddTest(
160160
TARGET base_ylm
161161
LIBS parameter
162-
SOURCES ylm_test.cpp ../ylm.cpp ../timer.cpp ../tool_quit.cpp ../global_variable.cpp ../global_file.cpp ../global_function.cpp ../memory.cpp
162+
SOURCES ylm_test.cpp ../ylm.cpp ../timer.cpp ../blas_connector.cpp ../tool_quit.cpp ../global_variable.cpp ../global_file.cpp ../global_function.cpp ../memory.cpp
163163
)
164164

165165
AddTest(
@@ -171,13 +171,13 @@ AddTest(
171171
AddTest(
172172
TARGET base_global_file
173173
LIBS parameter
174-
SOURCES global_file_test.cpp ../global_file.cpp ../global_function.cpp ../tool_quit.cpp ../global_variable.cpp ../memory.cpp ../timer.cpp
174+
SOURCES global_file_test.cpp ../global_file.cpp ../global_function.cpp ../tool_quit.cpp ../global_variable.cpp ../memory.cpp ../timer.cpp ../blas_connector.cpp
175175
)
176176

177177
AddTest(
178178
TARGET base_tool_title
179179
LIBS parameter
180-
SOURCES tool_title_test.cpp ../tool_title.cpp ../global_variable.cpp ../global_function.cpp ../timer.cpp ../tool_quit.cpp ../global_file.cpp ../memory.cpp
180+
SOURCES tool_title_test.cpp ../tool_title.cpp ../global_variable.cpp ../global_function.cpp ../timer.cpp ../blas_connector.cpp ../tool_quit.cpp ../global_file.cpp ../memory.cpp
181181
)
182182

183183
AddTest(
@@ -194,7 +194,7 @@ AddTest(
194194

195195
AddTest(
196196
TARGET spherical_bessel_transformer
197-
SOURCES spherical_bessel_transformer_test.cpp ../spherical_bessel_transformer.cpp ../math_sphbes.cpp ../math_integral.cpp ../timer.cpp
197+
SOURCES spherical_bessel_transformer_test.cpp ../spherical_bessel_transformer.cpp ../math_sphbes.cpp ../math_integral.cpp ../timer.cpp ../blas_connector.cpp
198198
LIBS parameter ${math_libs}
199199
)
200200

@@ -206,15 +206,15 @@ AddTest(
206206

207207
AddTest(
208208
TARGET clebsch_gordan_coeff_test
209-
SOURCES clebsch_gordan_coeff_test.cpp ../clebsch_gordan_coeff.cpp ../intarray.cpp ../realarray.cpp ../complexmatrix.cpp ../matrix.cpp ../timer.cpp
209+
SOURCES clebsch_gordan_coeff_test.cpp ../clebsch_gordan_coeff.cpp ../intarray.cpp ../realarray.cpp ../complexmatrix.cpp ../matrix.cpp ../timer.cpp ../blas_connector.cpp
210210
../math_ylmreal.cpp ../global_variable.cpp ../ylm.cpp ../timer.cpp ../vector3.h ../parallel_reduce.cpp ../parallel_global.cpp ../parallel_comm.cpp ../parallel_common.cpp
211211
../memory.cpp ../libm/branred.cpp ../libm/sincos.cpp ../inverse_matrix.cpp ../lapack_connector.h
212212
LIBS parameter ${math_libs} device
213213
)
214214

215215
AddTest(
216216
TARGET assoc_laguerre_test
217-
SOURCES assoc_laguerre_test.cpp ../assoc_laguerre.cpp ../tool_quit.cpp ../global_variable.cpp ../global_file.cpp ../global_function.cpp ../memory.cpp ../timer.cpp
217+
SOURCES assoc_laguerre_test.cpp ../assoc_laguerre.cpp ../tool_quit.cpp ../global_variable.cpp ../global_file.cpp ../global_function.cpp ../memory.cpp ../timer.cpp ../blas_connector.cpp
218218
LIBS parameter ${math_libs}
219219
)
220220

@@ -234,6 +234,6 @@ if(ENABLE_GOOGLEBENCH)
234234
AddTest(
235235
TARGET perf_sphbes
236236
LIBS parameter
237-
SOURCES perf_sphbes_test.cpp ../math_sphbes.cpp ../timer.cpp
237+
SOURCES perf_sphbes_test.cpp ../math_sphbes.cpp ../timer.cpp ../blas_connector.cpp
238238
)
239239
endif()

source/module_basis/module_ao/test/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ list(APPEND depend_files
1818
../../../module_base/tool_quit.cpp
1919
../../../module_base/tool_check.cpp
2020
../../../module_base/timer.cpp
21+
../../../module_base/blas_connector.cpp
2122
../../../module_base/mathzone_add1.cpp
2223
../../../module_base/global_variable.cpp
2324
../../../module_base/global_function.cpp

source/module_basis/module_pw/test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ AddTest(
33
TARGET pw_test
44
LIBS parameter ${math_libs} planewave device
55
SOURCES ../../../module_base/matrix.cpp ../../../module_base/complexmatrix.cpp ../../../module_base/matrix3.cpp ../../../module_base/tool_quit.cpp
6-
../../../module_base/mymath.cpp ../../../module_base/timer.cpp ../../../module_base/memory.cpp
6+
../../../module_base/mymath.cpp ../../../module_base/timer.cpp ../../../module_base/memory.cpp ../../../module_base/blas_connector.cpp
77
../../../module_base/libm/branred.cpp ../../../module_base/libm/sincos.cpp
88
# ../../../module_psi/kernels/psi_memory_op.cpp
99
../../../module_base/module_device/memory_op.cpp

source/module_hamilt_general/module_xc/test/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ AddTest(
6969
../../../module_base/matrix.cpp
7070
../../../module_base/memory.cpp
7171
../../../module_base/timer.cpp
72+
../../../module_base/blas_connector.cpp
7273
../../../module_base/libm/branred.cpp
7374
../../../module_base/libm/sincos.cpp
7475
)

source/module_hamilt_pw/hamilt_pwdft/test/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ AddTest(
1515
../../../module_base/global_file.cpp
1616
../../../module_base/memory.cpp
1717
../../../module_base/timer.cpp
18+
../../../module_base/blas_connector.cpp
1819
../../../module_base/parallel_global.cpp
1920
../../../module_base/parallel_comm.cpp
2021
../../../module_base/parallel_common.cpp

source/module_md/test/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ list(APPEND depend_files
1919
../../module_base/matrix3.cpp
2020
../../module_base/matrix.cpp
2121
../../module_base/timer.cpp
22+
../../module_base/blas_connector.cpp
2223
../../module_base/memory.cpp
2324
../../module_base/global_variable.cpp
2425
../../module_base/global_function.cpp

source/module_relax/relax_new/test/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ install(DIRECTORY support DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
99
AddTest(
1010
TARGET relax_new_line_search
1111
LIBS parameter
12-
SOURCES line_search_test.cpp ../line_search.cpp ../../../module_base/global_variable.cpp ../../../module_base/global_file.cpp ../../../module_base/global_function.cpp ../../../module_base/memory.cpp ../../../module_base/timer.cpp ../../../module_base/tool_quit.cpp
12+
SOURCES line_search_test.cpp ../line_search.cpp ../../../module_base/global_variable.cpp ../../../module_base/global_file.cpp ../../../module_base/global_function.cpp ../../../module_base/memory.cpp ../../../module_base/timer.cpp ../../../module_base/blas_connector.cpp ../../../module_base/tool_quit.cpp
1313
)
1414

1515
AddTest(
1616
TARGET relax_new_relax
17-
SOURCES relax_test.cpp ../relax.cpp ../line_search.cpp ../../../module_base/tool_quit.cpp ../../../module_base/global_variable.cpp ../../../module_base/global_file.cpp ../../../module_base/memory.cpp ../../../module_base/timer.cpp
17+
SOURCES relax_test.cpp ../relax.cpp ../line_search.cpp ../../../module_base/tool_quit.cpp ../../../module_base/global_variable.cpp ../../../module_base/global_file.cpp ../../../module_base/memory.cpp ../../../module_base/timer.cpp ../../../module_base/blas_connector.cpp
1818
../../../module_base/matrix3.cpp ../../../module_base/intarray.cpp ../../../module_base/tool_title.cpp
1919
../../../module_base/global_function.cpp ../../../module_base/complexmatrix.cpp ../../../module_base/matrix.cpp
2020
../../../module_base/complexarray.cpp ../../../module_base/tool_quit.cpp ../../../module_base/realarray.cpp

0 commit comments

Comments
 (0)