Skip to content

Commit 238828a

Browse files
committed
fix compile error caused by not linking lib in module_md/test
1 parent 7a535a5 commit 238828a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

source/module_md/test/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,21 @@ list(APPEND depend_files
4242

4343
AddTest(
4444
TARGET md_LJ_pot
45+
LIBS ${math_libs}
4546
SOURCES LJ_pot_test.cpp
4647
${depend_files}
4748
)
4849

4950
AddTest(
5051
TARGET md_func
52+
LIBS ${math_libs}
5153
SOURCES MD_func_test.cpp
5254
${depend_files}
5355
)
5456

5557
AddTest(
5658
TARGET md_fire
59+
LIBS ${math_libs}
5760
SOURCES FIRE_test.cpp
5861
../verlet.cpp
5962
../FIRE.cpp
@@ -62,6 +65,7 @@ AddTest(
6265

6366
AddTest(
6467
TARGET md_nve
68+
LIBS ${math_libs}
6569
SOURCES NVE_test.cpp
6670
../verlet.cpp
6771
../NVE.cpp
@@ -70,6 +74,7 @@ AddTest(
7074

7175
AddTest(
7276
TARGET md_nvt_ads
77+
LIBS ${math_libs}
7378
SOURCES NVT_ADS_test.cpp
7479
../verlet.cpp
7580
../NVT_ADS.cpp
@@ -78,6 +83,7 @@ AddTest(
7883

7984
AddTest(
8085
TARGET md_nvt_nhc
86+
LIBS ${math_libs}
8187
SOURCES NVT_NHC_test.cpp
8288
../verlet.cpp
8389
../NVT_NHC.cpp
@@ -86,6 +92,7 @@ AddTest(
8692

8793
AddTest(
8894
TARGET md_msst
95+
LIBS ${math_libs}
8996
SOURCES MSST_test.cpp
9097
../verlet.cpp
9198
../MSST.cpp
@@ -94,6 +101,7 @@ AddTest(
94101

95102
AddTest(
96103
TARGET md_lgv
104+
LIBS ${math_libs}
97105
SOURCES Langevin_test.cpp
98106
../verlet.cpp
99107
../Langevin.cpp

0 commit comments

Comments
 (0)