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
ce17dcef
Commit
ce17dcef
authored
Jul 25, 2014
by
Marian Triebe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add CMake file for opencl sub module
parent
1f4252ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
0 deletions
+41
-0
libcaf_opencl/CMakeLists.txt
libcaf_opencl/CMakeLists.txt
+41
-0
No files found.
libcaf_opencl/CMakeLists.txt
0 → 100644
View file @
ce17dcef
cmake_minimum_required
(
VERSION 2.8
)
project
(
caf_opencl C CXX
)
# get header files; only needed by CMake generators,
# e.g., for creating proper Xcode projects
file
(
GLOB LIBCAF_OPENCL_HDRS
"caf/opencl/*.hpp"
)
# list cpp files excluding platform-dependent files
set
(
LIBCAF_OPENCL_SRCS
src/global.cpp
src/opencl_metainfo.cpp
src/program.cpp
)
# build shared library if not compiling static only
if
(
NOT
"
${
CAF_BUILD_STATIC_ONLY
}
"
STREQUAL
"yes"
)
add_library
(
libcaf_opencl SHARED
${
LIBCAF_OPENCL_SRCS
}
${
LIBCAF_OPENCL_HDRS
}
)
target_link_libraries
(
libcaf_opencl
${
LD_FLAGS
}
${
LIBCAF_CORE_LIBRARY
}
)
set
(
LIBRARY_SOVERSION
${
CAF_VERSION_MAJOR
}
)
set_target_properties
(
libcaf_opencl
PROPERTIES
SOVERSION
${
LIBRARY_SOVERSION
}
VERSION
${
CAF_VERSION
}
OUTPUT_NAME caf_opencl
)
if
(
NOT MINGW
)
install
(
TARGETS libcaf_opencl LIBRARY DESTINATION lib
)
endif
()
endif
()
# build static library only if --build-static or --build-static-only was set
if
(
"
${
CAF_BUILD_STATIC_ONLY
}
"
STREQUAL
"yes"
OR
"
${
CAF_BUILD_STATIC
}
"
STREQUAL
"yes"
)
add_library
(
libcaf_openclStatic STATIC
${
LIBCAF_OPENCL_HDRS
}
${
LIBCAF_OPENCL_SRCS
}
)
set_target_properties
(
libcaf_openclStatic PROPERTIES OUTPUT_NAME caf_opencl_static
)
install
(
TARGETS libcaf_openclStatic ARCHIVE DESTINATION lib
)
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"
)
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