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
5c4abf73
"examples/vscode:/vscode.git/clone" did not exist on "82703dff7395dbc80d320af2d101d3ea530d2a25"
Commit
5c4abf73
authored
Apr 15, 2013
by
Yutong Zhao
Browse files
CMakeLists now includes .cl and .cu kernel files as part of the project in Visual Studio.
parent
37b86c10
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
platforms/cuda/CMakeLists.txt
platforms/cuda/CMakeLists.txt
+4
-0
platforms/opencl/CMakeLists.txt
platforms/opencl/CMakeLists.txt
+4
-0
No files found.
platforms/cuda/CMakeLists.txt
View file @
5c4abf73
...
@@ -84,6 +84,10 @@ FOREACH(subdir ${OPENMM_SOURCE_SUBDIRS})
...
@@ -84,6 +84,10 @@ FOREACH(subdir ${OPENMM_SOURCE_SUBDIRS})
FILE
(
GLOB_RECURSE src_files
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
subdir
}
/src/*.cpp
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
subdir
}
/src/*.c
)
FILE
(
GLOB_RECURSE src_files
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
subdir
}
/src/*.cpp
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
subdir
}
/src/*.c
)
FILE
(
GLOB incl_files
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
subdir
}
/src/*.h
)
FILE
(
GLOB incl_files
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
subdir
}
/src/*.h
)
SET
(
SOURCE_FILES
${
SOURCE_FILES
}
${
src_files
}
)
#append
SET
(
SOURCE_FILES
${
SOURCE_FILES
}
${
src_files
}
)
#append
IF
(
MSVC
)
FILE
(
GLOB_RECURSE kernel_files
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
subdir
}
/src/kernels/*.cu
)
SET
(
SOURCE_FILES
${
SOURCE_FILES
}
${
kernel_files
}
)
ENDIF
(
MSVC
)
SET
(
SOURCE_INCLUDE_FILES
${
SOURCE_INCLUDE_FILES
}
${
incl_files
}
)
SET
(
SOURCE_INCLUDE_FILES
${
SOURCE_INCLUDE_FILES
}
${
incl_files
}
)
INCLUDE_DIRECTORIES
(
BEFORE
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
subdir
}
/include
)
INCLUDE_DIRECTORIES
(
BEFORE
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
subdir
}
/include
)
ENDFOREACH
(
subdir
)
ENDFOREACH
(
subdir
)
...
...
platforms/opencl/CMakeLists.txt
View file @
5c4abf73
...
@@ -84,6 +84,10 @@ FOREACH(subdir ${OPENMM_SOURCE_SUBDIRS})
...
@@ -84,6 +84,10 @@ FOREACH(subdir ${OPENMM_SOURCE_SUBDIRS})
FILE
(
GLOB_RECURSE src_files
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
subdir
}
/src/*.cpp
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
subdir
}
/src/*.c
)
FILE
(
GLOB_RECURSE src_files
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
subdir
}
/src/*.cpp
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
subdir
}
/src/*.c
)
FILE
(
GLOB incl_files
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
subdir
}
/src/*.h
)
FILE
(
GLOB incl_files
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
subdir
}
/src/*.h
)
SET
(
SOURCE_FILES
${
SOURCE_FILES
}
${
src_files
}
)
#append
SET
(
SOURCE_FILES
${
SOURCE_FILES
}
${
src_files
}
)
#append
IF
(
MSVC
)
FILE
(
GLOB_RECURSE kernel_files
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
subdir
}
/src/kernels/*.cl
)
SET
(
SOURCE_FILES
${
SOURCE_FILES
}
${
kernel_files
}
)
ENDIF
(
MSVC
)
SET
(
SOURCE_INCLUDE_FILES
${
SOURCE_INCLUDE_FILES
}
${
incl_files
}
)
SET
(
SOURCE_INCLUDE_FILES
${
SOURCE_INCLUDE_FILES
}
${
incl_files
}
)
INCLUDE_DIRECTORIES
(
BEFORE
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
subdir
}
/include
)
INCLUDE_DIRECTORIES
(
BEFORE
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
subdir
}
/include
)
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