Skip to content

Commit 487b88c

Browse files
committed
Fix library sequence
1 parent 2a59b00 commit 487b88c

File tree

3 files changed

+34
-34
lines changed

3 files changed

+34
-34
lines changed

source/module_base/test/CMakeLists.txt

Lines changed: 32 additions & 32 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 ../blas_connector.cpp
21+
SOURCES tool_quit_test.cpp ../blas_connector.cpp ../tool_quit.cpp ../global_variable.cpp ../global_file.cpp ../global_function.cpp ../memory.cpp ../timer.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 ../blas_connector.cpp
26+
SOURCES tool_check_test.cpp ../blas_connector.cpp ../tool_check.cpp ../tool_quit.cpp ../global_variable.cpp ../global_file.cpp ../global_function.cpp ../memory.cpp ../timer.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 ../blas_connector.cpp
35+
SOURCES global_function_test.cpp ../blas_connector.cpp ../global_function.cpp ../tool_quit.cpp ../global_variable.cpp ../global_file.cpp ../memory.cpp ../timer.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 ../blas_connector.cpp
45+
SOURCES matrix3_test.cpp ../blas_connector.cpp ../matrix3.cpp ../matrix.cpp ../tool_quit.cpp ../global_variable.cpp ../global_file.cpp ../global_function.cpp ../memory.cpp ../timer.cpp
4646
)
4747
AddTest(
4848
TARGET base_intarray
@@ -57,59 +57,59 @@ 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 ../blas_connector.cpp
60+
SOURCES matrix_test.cpp ../blas_connector.cpp ../matrix.cpp ../tool_quit.cpp ../global_variable.cpp ../global_file.cpp ../global_function.cpp ../memory.cpp ../timer.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 ../blas_connector.cpp
65+
SOURCES complexarray_test.cpp ../blas_connector.cpp ../complexarray.cpp ../tool_quit.cpp ../global_variable.cpp ../global_file.cpp ../global_function.cpp ../memory.cpp ../timer.cpp
6666
)
6767
AddTest(
6868
TARGET base_complexmatrix
6969
LIBS parameter ${math_libs}
70-
SOURCES complexmatrix_test.cpp ../complexmatrix.cpp ../matrix.cpp
70+
SOURCES complexmatrix_test.cpp ../blas_connector.cpp ../complexmatrix.cpp ../matrix.cpp
7171
)
7272
AddTest(
7373
TARGET base_integral
7474
LIBS parameter
75-
SOURCES math_integral_test.cpp ../math_integral.cpp
75+
SOURCES math_integral_test.cpp ../blas_connector.cpp ../math_integral.cpp
7676
)
7777
AddTest(
7878
TARGET base_sph_bessel_recursive
7979
LIBS parameter
80-
SOURCES sph_bessel_recursive_test.cpp ../sph_bessel_recursive-d1.cpp ../sph_bessel_recursive-d2.cpp
80+
SOURCES sph_bessel_recursive_test.cpp ../blas_connector.cpp ../sph_bessel_recursive-d1.cpp ../sph_bessel_recursive-d2.cpp
8181
)
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 ../blas_connector.cpp ../matrix.cpp ../vector3.h
85+
SOURCES math_ylmreal_test.cpp ../blas_connector.cpp ../math_ylmreal.cpp ../complexmatrix.cpp ../global_variable.cpp ../ylm.cpp ../realarray.cpp ../timer.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 ../blas_connector.cpp
92+
SOURCES math_sphbes_test.cpp ../blas_connector.cpp ../math_sphbes.cpp ../timer.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 ../blas_connector.cpp
97+
SOURCES mathzone_test.cpp ../blas_connector.cpp ../matrix3.cpp ../matrix.cpp ../tool_quit.cpp ../global_variable.cpp ../global_file.cpp ../global_function.cpp ../memory.cpp ../timer.cpp
9898
)
9999
AddTest(
100100
TARGET base_mathzone_add1
101101
LIBS parameter ${math_libs}
102-
SOURCES mathzone_add1_test.cpp ../mathzone_add1.cpp ../math_sphbes.cpp ../matrix3.cpp ../matrix.cpp ../tool_quit.cpp ../global_variable.cpp ../global_file.cpp ../global_function.cpp ../memory.cpp ../timer.cpp
102+
SOURCES mathzone_add1_test.cpp ../blas_connector.cpp ../mathzone_add1.cpp ../math_sphbes.cpp ../matrix3.cpp ../matrix.cpp ../tool_quit.cpp ../global_variable.cpp ../global_file.cpp ../global_function.cpp ../memory.cpp ../timer.cpp
103103
)
104104
AddTest(
105105
TARGET base_math_polyint
106106
LIBS parameter
107-
SOURCES math_polyint_test.cpp ../math_polyint.cpp ../realarray.cpp ../timer.cpp ../blas_connector.cpp
107+
SOURCES math_polyint_test.cpp ../blas_connector.cpp ../math_polyint.cpp ../realarray.cpp ../timer.cpp
108108
)
109109
AddTest(
110110
TARGET base_gram_schmidt_orth
111111
LIBS parameter ${math_libs}
112-
SOURCES gram_schmidt_orth_test.cpp ../gram_schmidt_orth.h ../gram_schmidt_orth-inl.h ../global_function.h ../math_integral.cpp
112+
SOURCES gram_schmidt_orth_test.cpp ../blas_connector.cpp ../gram_schmidt_orth.h ../gram_schmidt_orth-inl.h ../global_function.h ../math_integral.cpp
113113
)
114114
AddTest(
115115
TARGET base_math_bspline
@@ -119,41 +119,41 @@ 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 ../blas_connector.cpp
122+
SOURCES inverse_matrix_test.cpp ../blas_connector.cpp ../inverse_matrix.cpp ../complexmatrix.cpp ../matrix.cpp ../timer.cpp
123123
)
124124
AddTest(
125125
TARGET base_mymath
126126
LIBS parameter
127-
SOURCES mymath_test.cpp ../mymath.cpp ../timer.cpp ../blas_connector.cpp
127+
SOURCES mymath_test.cpp ../blas_connector.cpp ../mymath.cpp ../timer.cpp
128128
)
129129
AddTest(
130130
TARGET base_container
131131
LIBS parameter
132-
SOURCES container_operator_test.cpp ../container_operator.h
132+
SOURCES container_operator_test.cpp ../blas_connector.cpp ../container_operator.h
133133
)
134134

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 ../blas_connector.cpp ../global_file.cpp ../global_function.cpp ../memory.cpp
138+
SOURCES math_chebyshev_test.cpp ../blas_connector.cpp ../math_chebyshev.cpp ../tool_quit.cpp ../global_variable.cpp ../timer.cpp ../global_file.cpp ../global_function.cpp ../memory.cpp
139139
)
140140

141141
AddTest(
142142
TARGET base_lapack_connector
143143
LIBS parameter ${math_libs}
144-
SOURCES lapack_connector_test.cpp ../lapack_connector.h
144+
SOURCES lapack_connector_test.cpp ../blas_connector.cpp ../lapack_connector.h
145145
)
146146

147147
AddTest(
148148
TARGET base_opt_CG
149149
LIBS parameter ${math_libs}
150-
SOURCES opt_CG_test.cpp opt_test_tools.cpp ../opt_CG.cpp ../opt_DCsrch.cpp ../global_variable.cpp ../parallel_reduce.cpp
150+
SOURCES opt_CG_test.cpp opt_test_tools.cpp ../blas_connector.cpp ../opt_CG.cpp ../opt_DCsrch.cpp ../global_variable.cpp ../parallel_reduce.cpp
151151
)
152152

153153
AddTest(
154154
TARGET base_opt_TN
155155
LIBS parameter ${math_libs}
156-
SOURCES opt_TN_test.cpp opt_test_tools.cpp ../opt_CG.cpp ../opt_DCsrch.cpp ../global_variable.cpp ../parallel_reduce.cpp
156+
SOURCES opt_TN_test.cpp opt_test_tools.cpp ../blas_connector.cpp ../opt_CG.cpp ../opt_DCsrch.cpp ../global_variable.cpp ../parallel_reduce.cpp
157157
)
158158

159159
AddTest(
@@ -165,56 +165,56 @@ AddTest(
165165
AddTest(
166166
TARGET base_abfs-vector3_order
167167
LIBS parameter
168-
SOURCES abfs-vector3_order_test.cpp ../abfs-vector3_order.cpp
168+
SOURCES abfs-vector3_order_test.cpp ../blas_connector.cpp ../abfs-vector3_order.cpp
169169
)
170170

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 ../blas_connector.cpp
174+
SOURCES global_file_test.cpp ../blas_connector.cpp ../global_file.cpp ../global_function.cpp ../tool_quit.cpp ../global_variable.cpp ../memory.cpp ../timer.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 ../blas_connector.cpp ../tool_quit.cpp ../global_file.cpp ../memory.cpp
180+
SOURCES tool_title_test.cpp ../blas_connector.cpp ../tool_title.cpp ../global_variable.cpp ../global_function.cpp ../timer.cpp ../tool_quit.cpp ../global_file.cpp ../memory.cpp
181181
)
182182

183183
AddTest(
184184
TARGET base_element_basis_index
185185
LIBS parameter
186-
SOURCES element_basis_index_test.cpp ../element_basis_index.cpp
186+
SOURCES element_basis_index_test.cpp ../blas_connector.cpp ../element_basis_index.cpp
187187
)
188188

189189
AddTest(
190190
TARGET base_tool_threading
191191
LIBS parameter
192-
SOURCES tool_threading_test.cpp ../tool_threading.h
192+
SOURCES tool_threading_test.cpp ../blas_connector.cpp ../tool_threading.h
193193
)
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 ../blas_connector.cpp
197+
SOURCES spherical_bessel_transformer_test.cpp ../blas_connector.cpp ../spherical_bessel_transformer.cpp ../math_sphbes.cpp ../math_integral.cpp ../timer.cpp
198198
LIBS parameter ${math_libs}
199199
)
200200

201201
AddTest(
202202
TARGET cubic_spline
203-
SOURCES cubic_spline_test.cpp ../cubic_spline.cpp
203+
SOURCES cubic_spline_test.cpp ../blas_connector.cpp ../cubic_spline.cpp
204204
LIBS parameter ${math_libs}
205205
)
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 ../blas_connector.cpp
209+
SOURCES clebsch_gordan_coeff_test.cpp ../blas_connector.cpp ../clebsch_gordan_coeff.cpp ../intarray.cpp ../realarray.cpp ../complexmatrix.cpp ../matrix.cpp ../timer.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 ../blas_connector.cpp
217+
SOURCES assoc_laguerre_test.cpp ../blas_connector.cpp ../assoc_laguerre.cpp ../tool_quit.cpp ../global_variable.cpp ../global_file.cpp ../global_function.cpp ../memory.cpp ../timer.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 ../blas_connector.cpp
237+
SOURCES perf_sphbes_test.cpp ../blas_connector.cpp ../math_sphbes.cpp ../timer.cpp
238238
)
239239
endif()

source/module_basis/module_ao/test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ list(APPEND depend_files
77
../../../module_base/math_ylmreal.cpp
88
../../../module_base/ylm.cpp
99
../../../module_base/memory.cpp
10+
../../../module_base/blas_connector.cpp
1011
../../../module_base/complexarray.cpp
1112
../../../module_base/complexmatrix.cpp
1213
../../../module_base/matrix.cpp
@@ -18,7 +19,6 @@ list(APPEND depend_files
1819
../../../module_base/tool_quit.cpp
1920
../../../module_base/tool_check.cpp
2021
../../../module_base/timer.cpp
21-
../../../module_base/blas_connector.cpp
2222
../../../module_base/mathzone_add1.cpp
2323
../../../module_base/global_variable.cpp
2424
../../../module_base/global_function.cpp

source/module_hamilt_general/module_xc/test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ AddTest(
6666
../xc_functional_vxc.cpp
6767
../xc_functional_libxc_vxc.cpp
6868
../xc_functional_libxc_tools.cpp
69+
../../../module_base/blas_connector.cpp
6970
../../../module_base/matrix.cpp
7071
../../../module_base/memory.cpp
7172
../../../module_base/timer.cpp
72-
../../../module_base/blas_connector.cpp
7373
../../../module_base/libm/branred.cpp
7474
../../../module_base/libm/sincos.cpp
7575
)

0 commit comments

Comments
 (0)