Skip to content

Commit edbaaf4

Browse files
authored
Test: remove coverage on some advanced codes in module_io for future … (#2021)
* Test: remove coverage on some advanced codes in module_io for future checks * rearrange CMakeLists.txt --------- Co-authored-by: root <hongriTianqi>
1 parent eda2613 commit edbaaf4

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

source/module_io/CMakeLists.txt

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
list(APPEND objects
22
input.cpp
33
input_conv.cpp
4-
berryphase.cpp
54
bessel_basis.cpp
65
cal_test.cpp
76
dos.cpp
@@ -15,16 +14,20 @@ list(APPEND objects
1514
read_rho.cpp
1615
restart.cpp
1716
rwstream.cpp
18-
to_wannier90.cpp
1917
unk_overlap_pw.cpp
2018
write_wfc_pw.cpp
21-
winput.cpp
22-
write_input.cpp
19+
write_input.cpp
2320
write_rho.cpp
2421
write_dipole.cpp
2522
write_wfc_r.cpp
2623
)
2724

25+
list(APPEND objects_advanced
26+
berryphase.cpp
27+
to_wannier90.cpp
28+
winput.cpp
29+
)
30+
2831
if(ENABLE_LCAO)
2932
list(APPEND objects
3033
cal_r_overlap_R.cpp
@@ -34,7 +37,6 @@ if(ENABLE_LCAO)
3437
nscf_fermi_surf.cpp
3538
istate_charge.cpp
3639
istate_envelope.cpp
37-
mulliken_charge.cpp
3840
read_dm.cpp
3941
unk_overlap_lcao.cpp
4042
read_wfc_nao.cpp
@@ -45,16 +47,25 @@ if(ENABLE_LCAO)
4547
write_dm.cpp
4648
write_dm_sparse.cpp
4749
)
50+
list(APPEND objects_advanced
51+
mulliken_charge.cpp
52+
)
4853
endif()
4954

5055
add_library(
5156
io
5257
OBJECT
58+
${objects} ${objects_advanced}
59+
)
60+
61+
add_library(
62+
io_cov
63+
OBJECT
5364
${objects}
5465
)
5566

5667
if(ENABLE_COVERAGE)
57-
add_coverage(io)
68+
add_coverage(io_cov)
5869
endif()
5970

6071
if(BUILD_TESTING)

0 commit comments

Comments
 (0)