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
5f2e5b2e
Commit
5f2e5b2e
authored
May 29, 2010
by
Peter Eastman
Browse files
Minor change to FindCUDA.cmake needed so it could be used with the NML plugin
parent
95aa79b7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
9 deletions
+3
-9
cmake_modules/FindCUDA.cmake
cmake_modules/FindCUDA.cmake
+1
-1
platforms/cuda/sharedTarget/CMakeLists.txt
platforms/cuda/sharedTarget/CMakeLists.txt
+1
-4
platforms/cuda/staticTarget/CMakeLists.txt
platforms/cuda/staticTarget/CMakeLists.txt
+1
-4
No files found.
cmake_modules/FindCUDA.cmake
View file @
5f2e5b2e
...
@@ -363,7 +363,7 @@ MACRO(CUDA_add_custom_commands cuda_target)
...
@@ -363,7 +363,7 @@ MACRO(CUDA_add_custom_commands cuda_target)
FILE
(
MAKE_DIRECTORY
${
CMAKE_BINARY_DIR
}
/src/cuda
)
FILE
(
MAKE_DIRECTORY
${
CMAKE_BINARY_DIR
}
/src/cuda
)
SET
(
source_file
${
CMAKE_CURRENT_SOURCE_DIR
}
/../
${
file
}
)
SET
(
source_file
${
file
}
)
# MESSAGE("${CUDA_NVCC} ${source_file} ${CUDA_NVCC_FLAGS} ${nvcc_flags} -cuda -o ${generated_file} ${CUDA_NVCC_INCLUDE_ARGS}")
# MESSAGE("${CUDA_NVCC} ${source_file} ${CUDA_NVCC_FLAGS} ${nvcc_flags} -cuda -o ${generated_file} ${CUDA_NVCC_INCLUDE_ARGS}")
...
...
platforms/cuda/sharedTarget/CMakeLists.txt
View file @
5f2e5b2e
...
@@ -6,10 +6,7 @@ INCLUDE_DIRECTORIES(${CUDA_INCLUDE})
...
@@ -6,10 +6,7 @@ INCLUDE_DIRECTORIES(${CUDA_INCLUDE})
LINK_DIRECTORIES
(
${
CUDA_TARGET_LINK
}
)
LINK_DIRECTORIES
(
${
CUDA_TARGET_LINK
}
)
FOREACH
(
subdir
${
OPENMM_SOURCE_SUBDIRS
}
)
FOREACH
(
subdir
${
OPENMM_SOURCE_SUBDIRS
}
)
FILE
(
GLOB src_files
${
CMAKE_SOURCE_DIR
}
/platforms/cuda/
${
subdir
}
/src/*.cu
${
CMAKE_SOURCE_DIR
}
/platforms/cuda/
${
subdir
}
/src/*/*.cu
)
FILE
(
GLOB src_files
${
CMAKE_SOURCE_DIR
}
/platforms/cuda/
${
subdir
}
/src/*.cu
${
CMAKE_SOURCE_DIR
}
/platforms/cuda/
${
subdir
}
/src/*/*.cu
)
FOREACH
(
file
${
src_files
}
)
SET
(
SOURCE_FILES
${
SOURCE_FILES
}
${
src_files
}
)
FILE
(
RELATIVE_PATH file
${
CMAKE_SOURCE_DIR
}
/platforms/cuda
${
file
}
)
SET
(
SOURCE_FILES
${
SOURCE_FILES
}
${
file
}
)
#append
ENDFOREACH
(
file
)
CUDA_INCLUDE_DIRECTORIES
(
BEFORE
${
CMAKE_SOURCE_DIR
}
/platforms/cuda/
${
subdir
}
/include
)
CUDA_INCLUDE_DIRECTORIES
(
BEFORE
${
CMAKE_SOURCE_DIR
}
/platforms/cuda/
${
subdir
}
/include
)
CUDA_INCLUDE_DIRECTORIES
(
BEFORE
${
CMAKE_SOURCE_DIR
}
/platforms/cuda/
${
subdir
}
/src
)
CUDA_INCLUDE_DIRECTORIES
(
BEFORE
${
CMAKE_SOURCE_DIR
}
/platforms/cuda/
${
subdir
}
/src
)
ENDFOREACH
(
subdir
)
ENDFOREACH
(
subdir
)
...
...
platforms/cuda/staticTarget/CMakeLists.txt
View file @
5f2e5b2e
...
@@ -6,10 +6,7 @@ INCLUDE_DIRECTORIES(${CUDA_INCLUDE})
...
@@ -6,10 +6,7 @@ INCLUDE_DIRECTORIES(${CUDA_INCLUDE})
LINK_DIRECTORIES
(
${
CUDA_TARGET_LINK
}
)
LINK_DIRECTORIES
(
${
CUDA_TARGET_LINK
}
)
FOREACH
(
subdir
${
OPENMM_SOURCE_SUBDIRS
}
)
FOREACH
(
subdir
${
OPENMM_SOURCE_SUBDIRS
}
)
FILE
(
GLOB src_files
${
CMAKE_SOURCE_DIR
}
/platforms/cuda/
${
subdir
}
/src/*.cu
${
CMAKE_SOURCE_DIR
}
/platforms/cuda/
${
subdir
}
/src/*/*.cu
)
FILE
(
GLOB src_files
${
CMAKE_SOURCE_DIR
}
/platforms/cuda/
${
subdir
}
/src/*.cu
${
CMAKE_SOURCE_DIR
}
/platforms/cuda/
${
subdir
}
/src/*/*.cu
)
FOREACH
(
file
${
src_files
}
)
SET
(
SOURCE_FILES
${
SOURCE_FILES
}
${
src_files
}
)
FILE
(
RELATIVE_PATH file
${
CMAKE_SOURCE_DIR
}
/platforms/cuda
${
file
}
)
SET
(
SOURCE_FILES
${
SOURCE_FILES
}
${
file
}
)
#append
ENDFOREACH
(
file
)
CUDA_INCLUDE_DIRECTORIES
(
BEFORE
${
CMAKE_SOURCE_DIR
}
/platforms/cuda/
${
subdir
}
/include
)
CUDA_INCLUDE_DIRECTORIES
(
BEFORE
${
CMAKE_SOURCE_DIR
}
/platforms/cuda/
${
subdir
}
/include
)
CUDA_INCLUDE_DIRECTORIES
(
BEFORE
${
CMAKE_SOURCE_DIR
}
/platforms/cuda/
${
subdir
}
/src
)
CUDA_INCLUDE_DIRECTORIES
(
BEFORE
${
CMAKE_SOURCE_DIR
}
/platforms/cuda/
${
subdir
}
/src
)
ENDFOREACH
(
subdir
)
ENDFOREACH
(
subdir
)
...
...
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