Skip to content
Snippets Groups Projects
Commit dc273755 authored by Bienchen's avatar Bienchen
Browse files

Made plugin path a CMake variable

parent f1793657
Branches
Tags
No related merge requests found
...@@ -36,6 +36,12 @@ set(OST_MOL_MM_SOURCES ...@@ -36,6 +36,12 @@ set(OST_MOL_MM_SOURCES
steep.cc steep.cc
) )
# create settings.hh as configurational header, needed to set the plugins path
set(config_hh_generator "CMake")
set(SETTINGS_HH_FILE "${CMAKE_CURRENT_SOURCE_DIR}/settings.hh")
configure_file(settings.hh.in ${SETTINGS_HH_FILE})
set(MOL_MM_DEPS ost_mol ost_io) set(MOL_MM_DEPS ost_mol ost_io)
......
...@@ -20,6 +20,10 @@ ...@@ -20,6 +20,10 @@
#ifndef OST_MM_SETTINGS_HH #ifndef OST_MM_SETTINGS_HH
#define OST_MM_SETTINGS_HH #define OST_MM_SETTINGS_HH
/*
DO NOT EDIT, automatically generated by @config_hh_generator@
*/
#include <vector> #include <vector>
#include <boost/shared_ptr.hpp> #include <boost/shared_ptr.hpp>
...@@ -130,8 +134,8 @@ struct Settings{ ...@@ -130,8 +134,8 @@ struct Settings{
reaction_field_dielectric(78.3), reaction_field_dielectric(78.3),
use_dispersion_correction(true), use_dispersion_correction(true),
keep_ff_specific_naming(true), keep_ff_specific_naming(true),
openmm_plugin_directory("/usr/local/openmm/lib/plugins"), openmm_plugin_directory("@OPEN_MM_PLUGIN_DIR@"),
custom_plugin_directory("/usr/local/openmm/lib/plugins") custom_plugin_directory("@OPEN_MM_PLUGIN_DIR@")
{ } { }
...@@ -190,4 +194,4 @@ struct Settings{ ...@@ -190,4 +194,4 @@ struct Settings{
}}} //namespace }}} //namespace
#endif #endif
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment