forked from gromacs/gromacs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Colvars module version 2023-07-21
- Loading branch information
1 parent
4fa28e8
commit 7d21d46
Showing
120 changed files
with
49,953 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# This file is part of the Collective Variables module (Colvars). | ||
# The original version of Colvars and its updates are located at: | ||
# https://github.com/Colvars/colvars | ||
# Please update all Colvars source files before making any changes. | ||
# If you wish to distribute your changes, please submit them to the | ||
# Colvars repository at GitHub. | ||
|
||
function(gmx_manage_colvars) | ||
file(GLOB COLVARS_SOURCES ${PROJECT_SOURCE_DIR}/src/external/colvars/*.cpp) | ||
add_library(colvars OBJECT ${COLVARS_SOURCES}) | ||
# Colvars requires a correct definition of __cplusplus, which MSVC doesn't give by default | ||
target_compile_options(colvars PRIVATE $<$<CXX_COMPILER_ID:MSVC>:/Zc:__cplusplus>) | ||
endfunction() | ||
|
||
function(gmx_include_colvars_headers) | ||
target_include_directories(libgromacs PRIVATE ${PROJECT_SOURCE_DIR}/src/external/colvars) | ||
endfunction() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# This file is part of the Collective Variables module (Colvars). | ||
# The original version of Colvars and its updates are located at: | ||
# https://github.com/Colvars/colvars | ||
# Please update all Colvars source files before making any changes. | ||
# If you wish to distribute your changes, please submit them to the | ||
# Colvars repository at GitHub. | ||
|
||
function(gmx_manage_lepton) | ||
|
||
# Add Lepton library, which is developed and distributed as part of OpenMM: | ||
# https://github.com/openmm/openmm | ||
|
||
file(GLOB LEPTON_SOURCES ${PROJECT_SOURCE_DIR}/src/external/lepton/src/*.cpp) | ||
add_library(lepton OBJECT ${LEPTON_SOURCES}) | ||
|
||
target_include_directories(lepton PRIVATE ${PROJECT_SOURCE_DIR}/src/external/lepton/include) | ||
target_compile_options(lepton PRIVATE -DLEPTON_BUILDING_STATIC_LIBRARY) | ||
|
||
# Set flags so that Colvars can leverage Lepton functionality | ||
target_include_directories(colvars PRIVATE ${PROJECT_SOURCE_DIR}/src/external/lepton/include) | ||
target_compile_options(colvars PRIVATE -DLEPTON -DLEPTON_USE_STATIC_LIBRARIES) | ||
endfunction() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.