Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schwede
openstructure
Commits
f1793657
Commit
f1793657
authored
9 years ago
by
Bienchen
Browse files
Options
Downloads
Patches
Plain Diff
Introduced a plugin path variable for OpenMM (just the variable, its not used for now)
parent
261ebe4e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+5
-1
5 additions, 1 deletion
CMakeLists.txt
cmake_support/FindOpenMM.cmake
+16
-4
16 additions, 4 deletions
cmake_support/FindOpenMM.cmake
with
21 additions
and
5 deletions
CMakeLists.txt
+
5
−
1
View file @
f1793657
...
...
@@ -243,7 +243,10 @@ endif()
if
(
ENABLE_MM
)
find_package
(
OpenMM REQUIRED
)
endif
()
set
(
_OPENMM_PLUGINS
"
${
OPEN_MM_PLUGIN_DIR
}
"
)
else
(
ENABLE_MM
)
set
(
_OPENMM_PLUGINS
"NONE"
)
endif
(
ENABLE_MM
)
if
(
ENABLE_IMG
)
find_package
(
FFTW REQUIRED
)
...
...
@@ -357,6 +360,7 @@ message(STATUS
" Numpy support (-DUSE_NUMPY) :
${
_NUMPY
}
\n
"
" SpaceNav Device support (-DENABLE_SPNAV) :
${
_SPNAV
}
\n
"
" OpenMM support (-DENABLE_MM) :
${
_OPENMM
}
\n
"
" OpenMM plugins (-DOPEN_MM_PLUGIN_DIR) :
${
_OPENMM_PLUGINS
}
\n
"
" Optimize (-DOPTIMIZE) :
${
_OPT
}
\n
"
" Profiling support (-DPROFILE) :
${
_PROFILE
}
\n
"
" Double Precision (-DUSE_DOUBLE_PRECISION) :
${
_DOUBLE_PREC
}
\n
"
...
...
This diff is collapsed.
Click to expand it.
cmake_support/FindOpenMM.cmake
+
16
−
4
View file @
f1793657
...
...
@@ -4,9 +4,10 @@
# - Find OpenMM
# Find the native OpenMM includes and library
#
# OpenMM_INCLUDE_DIRS - OpenMM include dirs.
# OpenMM_LIBRARIES - List of libraries when using OpenMM.
# OpenMM_FOUND - True if OpenMM found.
# OPEN_MM_INCLUDE_DIR - OpenMM include dirs.
# OPEN_MM_LIBRARIES - List of libraries when using OpenMM.
# OPEN_MM_FOUND - True if OpenMM found.
# OPEN_MM_PLUGIN_DIR - Default for ressource plugins
if
(
OPEN_MM_INCLUDE_DIR
)
set
(
OPEN_MM_FOUND TRUE
)
...
...
@@ -28,4 +29,15 @@ set(OPEN_MM_INCLUDE_DIRS ${OPEN_MM_INCLUDE_DIR})
include
(
FindPackageHandleStandardArgs
)
find_package_handle_standard_args
(
OpenMM DEFAULT_MSG OPEN_MM_LIBRARY OPEN_MM_INCLUDE_DIR
)
mark_as_advanced
(
OPEN_MM_LIBRARY OPEN_MM_INCLUDE_DIR
)
if
(
OPEN_MM_LIBRARY
)
set
(
OPEN_MM_FOUND TRUE
)
if
(
NOT OPEN_MM_PLUGIN_DIR
)
set
(
OPEN_MM_PLUGIN_DIR
"/usr/local/openmm/lib/plugins"
)
endif
(
NOT OPEN_MM_PLUGIN_DIR
)
if
(
NOT EXISTS
"
${
OPEN_MM_PLUGIN_DIR
}
"
)
message
(
FATAL_ERROR
"OpenMM plugin directory does not exist: '
${
OPEN_MM_PLUGIN_DIR
}
'"
)
endif
(
NOT EXISTS
"
${
OPEN_MM_PLUGIN_DIR
}
"
)
endif
(
OPEN_MM_LIBRARY
)
mark_as_advanced
(
OPEN_MM_LIBRARY OPEN_MM_INCLUDE_DIR OPEN_MM_FOUND
OPEN_MM_PLUGIN_DIR
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment