Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
19b4fc48
Commit
19b4fc48
authored
Nov 21, 2013
by
Peter Eastman
Browse files
Merge branch 'master' of
https://github.com/peastman/openmm
into wrappers
parents
772b8a15
c1f64b3f
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
8 additions
and
32 deletions
+8
-32
CMakeLists.txt
CMakeLists.txt
+3
-2
platforms/cpu/sharedTarget/CMakeLists.txt
platforms/cpu/sharedTarget/CMakeLists.txt
+3
-2
platforms/cpu/tests/CMakeLists.txt
platforms/cpu/tests/CMakeLists.txt
+2
-0
platforms/cuda/CMakeLists.txt
platforms/cuda/CMakeLists.txt
+0
-4
platforms/opencl/CMakeLists.txt
platforms/opencl/CMakeLists.txt
+0
-4
plugins/cpupme/CMakeLists.txt
plugins/cpupme/CMakeLists.txt
+0
-4
plugins/drude/platforms/cuda/CMakeLists.txt
plugins/drude/platforms/cuda/CMakeLists.txt
+0
-4
plugins/drude/platforms/opencl/CMakeLists.txt
plugins/drude/platforms/opencl/CMakeLists.txt
+0
-4
plugins/rpmd/platforms/cuda/CMakeLists.txt
plugins/rpmd/platforms/cuda/CMakeLists.txt
+0
-4
plugins/rpmd/platforms/opencl/CMakeLists.txt
plugins/rpmd/platforms/opencl/CMakeLists.txt
+0
-4
No files found.
CMakeLists.txt
View file @
19b4fc48
...
...
@@ -105,15 +105,16 @@ ELSE( CMAKE_SIZEOF_VOID_P EQUAL 8 )
SET
(
LIB64
)
ENDIF
(
CMAKE_SIZEOF_VOID_P EQUAL 8
)
# Build universal binaries compatible with OS X 10.
5
# Build universal binaries compatible with OS X 10.
7
IF
(
APPLE AND NOT CMAKE_OSX_DEPLOYMENT_TARGET
)
SET
(
CMAKE_OSX_ARCHITECTURES
"i386;x86_64"
CACHE STRING
"The processor architectures to build for"
FORCE
)
SET
(
CMAKE_OSX_DEPLOYMENT_TARGET
"10.
5
"
CACHE STRING
"The minimum version of OS X to support"
FORCE
)
SET
(
CMAKE_OSX_DEPLOYMENT_TARGET
"10.
7
"
CACHE STRING
"The minimum version of OS X to support"
FORCE
)
ENDIF
(
APPLE AND NOT CMAKE_OSX_DEPLOYMENT_TARGET
)
# Improve the linking behavior of Mac libraries
IF
(
APPLE
)
SET
(
CMAKE_INSTALL_NAME_DIR
"@rpath"
)
SET_PROPERTY
(
GLOBAL PROPERTY COMPILE_FLAGS
"-stdlib=libc++ -mmacosx-version-min=10.7"
)
ENDIF
(
APPLE
)
IF
(
UNIX AND NOT CMAKE_BUILD_TYPE
)
...
...
platforms/cpu/sharedTarget/CMakeLists.txt
View file @
19b4fc48
SET_SOURCE_FILES_PROPERTIES
(
${
SOURCE_FILES
}
PROPERTIES COMPILE_FLAGS
"-msse4.1"
)
GET_PROPERTY
(
COMPILE_FLAGS GLOBAL PROPERTY COMPILE_FLAGS
)
SET_SOURCE_FILES_PROPERTIES
(
${
SOURCE_FILES
}
PROPERTIES COMPILE_FLAGS
"
${
COMPILE_FLAGS
}
-msse4.1"
)
ADD_LIBRARY
(
${
SHARED_TARGET
}
SHARED
${
SOURCE_FILES
}
${
SOURCE_INCLUDE_FILES
}
${
API_ABS_INCLUDE_FILES
}
)
IF
(
UNIX AND CMAKE_BUILD_TYPE MATCHES Debug
)
...
...
@@ -7,6 +8,6 @@ ELSE (UNIX AND CMAKE_BUILD_TYPE MATCHES Debug)
SET
(
MAIN_OPENMM_LIB
${
OPENMM_LIBRARY_NAME
}
)
ENDIF
(
UNIX AND CMAKE_BUILD_TYPE MATCHES Debug
)
TARGET_LINK_LIBRARIES
(
${
SHARED_TARGET
}
${
MAIN_OPENMM_LIB
}
${
PTHREADS_LIB
}
)
SET_TARGET_PROPERTIES
(
${
SHARED_TARGET
}
PROPERTIES COMPILE_FLAGS
"-DOPENMM_CPU_BUILDING_SHARED_LIBRARY"
)
SET_TARGET_PROPERTIES
(
${
SHARED_TARGET
}
PROPERTIES COMPILE_FLAGS
"-DOPENMM_CPU_BUILDING_SHARED_LIBRARY"
LINK_FLAGS
"
${
COMPILE_FLAGS
}
"
)
INSTALL_TARGETS
(
/lib/plugins RUNTIME_DIRECTORY /lib/plugins
${
SHARED_TARGET
}
)
platforms/cpu/tests/CMakeLists.txt
View file @
19b4fc48
...
...
@@ -11,6 +11,7 @@ IF( INCLUDE_SERIALIZATION )
INCLUDE_DIRECTORIES
(
${
OPENMM_DIR
}
/serialization/include
)
SET
(
SHARED_OPENMM_SERIALIZATION
"OpenMMSerialization"
)
ENDIF
(
INCLUDE_SERIALIZATION
)
GET_PROPERTY
(
COMPILE_FLAGS GLOBAL PROPERTY COMPILE_FLAGS
)
# Automatically create tests using files named "Test*.cpp"
FILE
(
GLOB TEST_PROGS
"*Test*.cpp"
)
...
...
@@ -20,6 +21,7 @@ FOREACH(TEST_PROG ${TEST_PROGS})
# Link with shared library
ADD_EXECUTABLE
(
${
TEST_ROOT
}
${
TEST_PROG
}
)
TARGET_LINK_LIBRARIES
(
${
TEST_ROOT
}
${
SHARED_TARGET
}
)
SET_TARGET_PROPERTIES
(
${
TEST_ROOT
}
PROPERTIES COMPILE_FLAGS
"
${
COMPILE_FLAGS
}
"
LINK_FLAGS
"
${
COMPILE_FLAGS
}
"
)
ADD_TEST
(
${
TEST_ROOT
}
${
EXECUTABLE_OUTPUT_PATH
}
/
${
TEST_ROOT
}
single
)
ENDFOREACH
(
TEST_PROG
${
TEST_PROGS
}
)
platforms/cuda/CMakeLists.txt
View file @
19b4fc48
...
...
@@ -14,10 +14,6 @@
# libOpenMMCUDA_static[_d].a
#----------------------------------------------------
IF
(
APPLE
)
SET
(
CMAKE_OSX_DEPLOYMENT_TARGET
"10.6"
)
ENDIF
(
APPLE
)
set
(
OPENMM_BUILD_CUDA_TESTS TRUE CACHE BOOL
"Whether to build CUDA test cases"
)
if
(
OPENMM_BUILD_CUDA_TESTS
)
SUBDIRS
(
tests
)
...
...
platforms/opencl/CMakeLists.txt
View file @
19b4fc48
...
...
@@ -14,10 +14,6 @@
# libOpenMMOpenCL_static[_d].a
#----------------------------------------------------
IF
(
APPLE
)
SET
(
CMAKE_OSX_DEPLOYMENT_TARGET
"10.6"
)
ENDIF
(
APPLE
)
set
(
OPENMM_BUILD_OPENCL_TESTS TRUE CACHE BOOL
"Whether to build OpenCL test cases"
)
if
(
OPENMM_BUILD_OPENCL_TESTS
)
SUBDIRS
(
tests
)
...
...
plugins/cpupme/CMakeLists.txt
View file @
19b4fc48
...
...
@@ -11,10 +11,6 @@
# libOpenMMPME[_d].so
#----------------------------------------------------
IF
(
APPLE
)
SET
(
CMAKE_OSX_DEPLOYMENT_TARGET
"10.6"
)
ENDIF
(
APPLE
)
# The source is organized into subdirectories, but we handle them all from
# this CMakeLists file rather than letting CMake visit them as SUBDIRS.
SET
(
OPENMM_SOURCE_SUBDIRS .
)
...
...
plugins/drude/platforms/cuda/CMakeLists.txt
View file @
19b4fc48
...
...
@@ -12,10 +12,6 @@
# libOpenMMDrudeCUDA[_d].so
#----------------------------------------------------
IF
(
APPLE
)
SET
(
CMAKE_OSX_DEPLOYMENT_TARGET
"10.6"
)
ENDIF
(
APPLE
)
# The source is organized into subdirectories, but we handle them all from
# this CMakeLists file rather than letting CMake visit them as SUBDIRS.
SET
(
OPENMM_SOURCE_SUBDIRS .
)
...
...
plugins/drude/platforms/opencl/CMakeLists.txt
View file @
19b4fc48
...
...
@@ -12,10 +12,6 @@
# libOpenMMDrudeOpenCL[_d].so
#----------------------------------------------------
IF
(
APPLE
)
SET
(
CMAKE_OSX_DEPLOYMENT_TARGET
"10.6"
)
ENDIF
(
APPLE
)
# The source is organized into subdirectories, but we handle them all from
# this CMakeLists file rather than letting CMake visit them as SUBDIRS.
SET
(
OPENMM_SOURCE_SUBDIRS .
)
...
...
plugins/rpmd/platforms/cuda/CMakeLists.txt
View file @
19b4fc48
...
...
@@ -12,10 +12,6 @@
# libOpenMMRPMDCUDA[_d].so
#----------------------------------------------------
IF
(
APPLE
)
SET
(
CMAKE_OSX_DEPLOYMENT_TARGET
"10.6"
)
ENDIF
(
APPLE
)
# The source is organized into subdirectories, but we handle them all from
# this CMakeLists file rather than letting CMake visit them as SUBDIRS.
SET
(
OPENMM_SOURCE_SUBDIRS .
)
...
...
plugins/rpmd/platforms/opencl/CMakeLists.txt
View file @
19b4fc48
...
...
@@ -12,10 +12,6 @@
# libOpenMMRPMDOpenCL[_d].so
#----------------------------------------------------
IF
(
APPLE
)
SET
(
CMAKE_OSX_DEPLOYMENT_TARGET
"10.6"
)
ENDIF
(
APPLE
)
# The source is organized into subdirectories, but we handle them all from
# this CMakeLists file rather than letting CMake visit them as SUBDIRS.
SET
(
OPENMM_SOURCE_SUBDIRS .
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment