Added dependencies for openmm_api_wrapper
[alexxy/gromacs.git] / src / kernel / CMakeLists.txt
index b5ac189191e504f9d55cac6c1749c8748badb136..b646884c22f1cc012853255d60e20b310d575a74 100644 (file)
@@ -56,6 +56,7 @@ if(GMX_OPENMM)
         add_definitions( -DOPENMM_PLUGIN_DIR="" )
     endif()
     add_library(openmm_api_wrapper openmm_wrapper.cpp)
+    target_link_libraries(openmm_api_wrapper gmx gmx_gpu_utils ${OpenMM_LIBRARIES})
 #    remove_definitions( -DOPENMM_PLUGIN_DIR="${OpenMM_PLUGIN_DIR}" )  # TODO where should this go?!
     set(GMX_OPENMM_LIBRARIES openmm_api_wrapper gmx_gpu_utils ${OpenMM_LIBRARIES})   
 endif(GMX_OPENMM)