Skip to content

Commit 7a535a5

Browse files
committed
modify CMakeLists.txt according to #676
1 parent 5e99ede commit 7a535a5

File tree

2 files changed

+42
-17
lines changed

2 files changed

+42
-17
lines changed

source/module_orbital/test/1_snap_equal_test.cpp

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -69,19 +69,4 @@ TEST_F(test_orb, equal_test)
6969
}
7070
}
7171
}
72-
}
73-
74-
int main(int argc, char** argv)
75-
{
76-
#ifdef __MPI
77-
MPI_Init(&argc,&argv);
78-
#endif
79-
80-
testing::InitGoogleTest(&argc, argv);
81-
int result = RUN_ALL_TESTS();
82-
83-
#ifdef __MPI
84-
MPI_Finalize();
85-
#endif
86-
return result;
87-
}
72+
}
Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,44 @@
1+
remove_definitions(-D__MPI)
2+
3+
list(APPEND depend_files
4+
../../module_base/math_integral.cpp
5+
../../module_base/math_sphbes.cpp
6+
../../module_base/math_polyint.cpp
7+
../../module_base/math_ylmreal.cpp
8+
../../module_base/ylm.cpp
9+
../../module_base/memory.cpp
10+
../../module_base/complexarray.cpp
11+
../../module_base/complexmatrix.cpp
12+
../../module_base/matrix.cpp
13+
../../module_base/realarray.cpp
14+
../../module_base/intarray.cpp
15+
../../module_base/sph_bessel.cpp
16+
../../module_base/sph_bessel_recursive-d1.cpp
17+
../../module_base/sph_bessel_recursive-d2.cpp
18+
../../module_base/tool_title.cpp
19+
../../module_base/tool_quit.cpp
20+
../../module_base/tool_check.cpp
21+
../../module_base/timer.cpp
22+
../../module_base/mathzone_add1.cpp
23+
../../module_base/global_variable.cpp
24+
../../module_base/global_function.cpp
25+
../../module_base/global_file.cpp
26+
../ORB_control.cpp
27+
../ORB_read.cpp
28+
../ORB_atomic.cpp
29+
../ORB_atomic_lm.cpp
30+
../ORB_nonlocal.cpp
31+
../ORB_nonlocal_lm.cpp
32+
../ORB_gaunt_table.cpp
33+
../ORB_table_beta.cpp
34+
../ORB_table_phi.cpp
35+
../ORB_table_alpha.cpp
36+
../ORB_gen_tables.cpp
37+
../../src_lcao/center2_orb-orb11.cpp
38+
)
139
AddTest(
2-
TARGET orbital_equal_test # this is the executable file name of the test
40+
TARGET orbital_equal_test
41+
LIBS ${math_libs}
342
SOURCES 1_snap_equal_test.cpp ORB_unittest.cpp
43+
${depend_files}
444
)

0 commit comments

Comments
 (0)