Added QMMMForceProvider class for QMMM MdModule
[alexxy/gromacs.git] / src / gromacs / applied_forces / qmmm / CMakeLists.txt
index ba20be38243be8a7c794c28f613adeda94e27c12..3707aa1188f206a9b67e9af5e538d663338875bc 100644 (file)
@@ -37,6 +37,18 @@ gmx_add_libgromacs_sources(
     qmmmtopologypreprocessor.cpp
     )
 
+# If we have libcp2k linked then compile qmmmforceprovider.cpp
+# In other case compile stub implementation qmmmforceprovider_stub.cpp
+if (GMX_CP2K)
+gmx_add_libgromacs_sources(
+    qmmmforceprovider.cpp
+    )
+else()
+gmx_add_libgromacs_sources(
+    qmmmforceprovider_stub.cpp
+    )
+endif()
+
 if (BUILD_TESTING)
     add_subdirectory(tests)
 endif()