Skip to content

Commit

Permalink
Included version number 0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
craabreu committed Jan 5, 2023
1 parent 8db4c94 commit 12a6aae
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

CMAKE_MINIMUM_REQUIRED(VERSION 3.17)

PROJECT(OpenMMNonbondedSlicing)
PROJECT(OpenMMNonbondedSlicing VERSION 0.1)

# We need to know where OpenMM is installed so we can access the headers and libraries.
SET(OPENMM_DIR "/usr/local/openmm" CACHE PATH "Where OpenMM is installed")
Expand Down
5 changes: 3 additions & 2 deletions python/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
set(WRAP_FILE NonbondedSlicingWrapper.cpp)
set(MODULE_NAME nonbondedslicing)
configure_file(nonbondedslicing.i ${CMAKE_CURRENT_BINARY_DIR})

# Execute SWIG to generate source code for the Python module.

Expand All @@ -10,8 +11,8 @@ add_custom_command(
-doxygen
-o "${WRAP_FILE}"
"-I${OPENMM_DIR}/include"
"${CMAKE_CURRENT_SOURCE_DIR}/nonbondedslicing.i"
DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/nonbondedslicing.i"
"nonbondedslicing.i"
DEPENDS "nonbondedslicing.i"
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
)

Expand Down
2 changes: 2 additions & 0 deletions python/nonbondedslicing.i
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

%pythoncode %{
from openmm import unit

__version__ = "@CMAKE_PROJECT_VERSION@"
%}

/*
Expand Down

0 comments on commit 12a6aae

Please sign in to comment.