# Build the Molmodel OpenMM Plugin # The library is dependent on its local .cpp file and some of # the Molmodel classes. We'll list everything to be safe. ADD_LIBRARY(${OpenMM_PLUGIN_LIBRARY} SHARED OpenMMPlugin.cpp ${SOURCE_INCLUDE_FILES} ${API_ABS_INCLUDE_FILES}) # The plugin depends on the OpenMM.dll that is part of # the OpenMM distribution. TARGET_LINK_LIBRARIES(${OpenMM_PLUGIN_LIBRARY} ${SHARED_TARGET} # SimTKMolmodel.dll debug ${OpenMM_SHARED_LIBRARY}_d # OpenMM.dll optimized ${OpenMM_SHARED_LIBRARY} ) SET_TARGET_PROPERTIES(${OpenMM_PLUGIN_LIBRARY} PROPERTIES PROJECT_LABEL "Plugin - ${OpenMM_PLUGIN_LIBRARY}") # Install the plugin with the Molmodel distribution; # on Windows both .lib and .dll go in the lib/plugins # directory although the ".lib" should not be needed for # a runtime-linked DLL. INSTALL_TARGETS(/lib${LIB64}/plugins RUNTIME_DIRECTORY /lib${LIB64}/plugins ${OpenMM_PLUGIN_LIBRARY})