Merge branch 'release-2020' into master
[alexxy/gromacs.git] / src / gromacs / gmxpreprocess / tests / CMakeLists.txt
index 3be1db55286c2dbe4e91d227b518b3d3b0620c54..5398c140a3fef4406f59c50f68f76232819ef04f 100644 (file)
 # To help us fund GROMACS development, we humbly ask that you cite
 # the research papers on the package. Check out http://www.gromacs.org.
 
-gmx_add_unit_test(GmxPreprocessTests gmxpreprocess-test
-    editconf.cpp
-    genconf.cpp
-    genion.cpp
-    genrestr.cpp
-    gpp_atomtype.cpp
-    gpp_bond_atomtype.cpp
-    insert_molecules.cpp
-    readir.cpp
-    solvate.cpp
-    topdirs.cpp
-    )
+gmx_add_gtest_executable(gmxpreprocess-test
+    CPP_SOURCE_FILES
+        editconf.cpp
+        genconf.cpp
+        genion.cpp
+        genrestr.cpp
+        gpp_atomtype.cpp
+        gpp_bond_atomtype.cpp
+        insert_molecules.cpp
+        readir.cpp
+        solvate.cpp
+        topdirs.cpp
+        )
+gmx_register_gtest_test(GmxPreprocessTests gmxpreprocess-test SLOW_TEST)
 
 # Currently these can be slow to run in Jenkins, so they are in
 # several test binaries.
 
 set(exename pdb2gmx1-test)
 gmx_add_gtest_executable(${exename}
-   pdb2gmx.cpp
-)
+    CPP_SOURCE_FILES
+       pdb2gmx.cpp
+       )
 target_compile_definitions(${exename} PRIVATE OPLSAA=1 GROMOS=0 AMBER=0 CHARMM=0)
-gmx_register_gtest_test(Pdb2gmx1Test ${exename})
+gmx_register_gtest_test(Pdb2gmx1Test ${exename} SLOW_TEST)
 
 set(exename pdb2gmx2-test)
 gmx_add_gtest_executable(${exename}
-    pdb2gmx.cpp
-    )
+    CPP_SOURCE_FILES
+        pdb2gmx.cpp
+        )
 target_compile_definitions(${exename} PRIVATE OPLSAA=0 GROMOS=1 AMBER=0 CHARMM=0)
-gmx_register_gtest_test(Pdb2gmx2Test ${exename})
+gmx_register_gtest_test(Pdb2gmx2Test ${exename} SLOW_TEST)
 
 set(exename pdb2gmx3-test)
 gmx_add_gtest_executable(${exename}
-    pdb2gmx.cpp
-    )
+    CPP_SOURCE_FILES
+        pdb2gmx.cpp
+        )
 target_compile_definitions(${exename} PRIVATE OPLSAA=0 GROMOS=0 AMBER=1 CHARMM=1)
-gmx_register_gtest_test(Pdb2gmx3Test ${exename})
+gmx_register_gtest_test(Pdb2gmx3Test ${exename} SLOW_TEST)