Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
63f330fa
Commit
63f330fa
authored
Sep 22, 2015
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update CMake setup
parent
95e01a3d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
34 deletions
+35
-34
libcaf_opencl/CMakeLists.txt
libcaf_opencl/CMakeLists.txt
+34
-33
libcaf_opencl/examples/CMakeLists.txt
libcaf_opencl/examples/CMakeLists.txt
+1
-1
No files found.
libcaf_opencl/CMakeLists.txt
View file @
63f330fa
...
...
@@ -7,21 +7,20 @@ file(GLOB LIBCAF_OPENCL_HDRS "caf/opencl/*.hpp")
add_custom_target
(
libcaf_opencl
)
if
(
OpenCL_LIBRARIES
)
# list cpp files excluding platform-dependent files
set
(
LIBCAF_OPENCL_SRCS
# list cpp files excluding platform-dependent files
set
(
LIBCAF_OPENCL_SRCS
src/global.cpp
src/metainfo.cpp
src/program.cpp
src/opencl_err.cpp
src/platform.cpp
src/device.cpp
)
# build shared library if not compiling static only
if
(
NOT CAF_BUILD_STATIC_ONLY
)
# build shared library if not compiling static only
if
(
NOT CAF_BUILD_STATIC_ONLY
)
add_library
(
libcaf_opencl_shared SHARED
${
LIBCAF_OPENCL_SRCS
}
${
LIBCAF_OPENCL_HDRS
}
${
OpenCL_INCLUDE_DIRS
}
)
target_link_libraries
(
libcaf_opencl_shared
${
LD_FLAGS
}
${
LIBCAF_CORE_LIBRARY
}
${
CAF_LIBRARY_CORE
}
${
OpenCL_LIBRARIES
}
)
set_target_properties
(
libcaf_opencl_shared
PROPERTIES
...
...
@@ -31,16 +30,18 @@ if (OpenCL_LIBRARIES)
if
(
NOT WIN32
)
install
(
TARGETS libcaf_opencl_shared LIBRARY DESTINATION lib
)
endif
()
endif
()
# build static library only if --build-static or --build-static-only was set
if
(
CAF_BUILD_STATIC_ONLY OR CAF_BUILD_STATIC
)
endif
()
# build static library only if --build-static or --build-static-only was set
if
(
CAF_BUILD_STATIC_ONLY OR CAF_BUILD_STATIC
)
add_library
(
libcaf_opencl_static STATIC
${
LIBCAF_OPENCL_HDRS
}
${
LIBCAF_OPENCL_SRCS
}
)
target_link_libraries
(
libcaf_opencl_static
${
LD_FLAGS
}
${
CAF_LIBRARY_CORE_STATIC
}
${
OpenCL_LIBRARIES
}
)
set_target_properties
(
libcaf_opencl_static PROPERTIES OUTPUT_NAME caf_opencl_static
)
install
(
TARGETS libcaf_opencl_static ARCHIVE DESTINATION lib
)
endif
()
link_directories
(
${
LD_DIRS
}
)
include_directories
(
.
${
INCLUDE_DIRS
}
)
endif
()
link_directories
(
${
LD_DIRS
}
)
include_directories
(
.
${
INCLUDE_DIRS
}
)
# install includes
install
(
DIRECTORY caf/ DESTINATION include/caf FILES_MATCHING PATTERN
"*.hpp"
)
install
(
DIRECTORY cppa/ DESTINATION include/cppa FILES_MATCHING PATTERN
"*.hpp"
)
libcaf_opencl/examples/CMakeLists.txt
View file @
63f330fa
...
...
@@ -13,7 +13,7 @@ if(OpenCL_LIBRARIES)
add_executable
(
${
name
}
${
folder
}
/
${
name
}
.cpp
${
ARGN
}
)
target_link_libraries
(
${
name
}
${
LD_FLAGS
}
${
LIB
CAF_LIBRARIES
}
${
CAF_LIBRARIES
}
${
PTHREAD_LIBRARIES
}
${
WSLIB
}
${
OpenCL_LIBRARIES
}
)
...
...
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