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
bfb49139
Commit
bfb49139
authored
Apr 08, 2015
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adapt to upstream CMake change
parent
ea3bbd41
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
libcaf_opencl/CMakeLists.txt
libcaf_opencl/CMakeLists.txt
+15
-15
No files found.
libcaf_opencl/CMakeLists.txt
View file @
bfb49139
...
@@ -5,37 +5,37 @@ project(caf_opencl C CXX)
...
@@ -5,37 +5,37 @@ project(caf_opencl C CXX)
# e.g., for creating proper Xcode projects
# e.g., for creating proper Xcode projects
file
(
GLOB LIBCAF_OPENCL_HDRS
"caf/opencl/*.hpp"
)
file
(
GLOB LIBCAF_OPENCL_HDRS
"caf/opencl/*.hpp"
)
add_custom_target
(
libcaf_opencl
)
if
(
OpenCL_LIBRARIES
)
if
(
OpenCL_LIBRARIES
)
# list cpp files excluding platform-dependent files
# list cpp files excluding platform-dependent files
set
(
LIBCAF_OPENCL_SRCS
set
(
LIBCAF_OPENCL_SRCS
src/global.cpp
src/global.cpp
src/opencl_metainfo.cpp
src/opencl_metainfo.cpp
src/program.cpp
src/program.cpp
src/opencl_err.cpp
src/opencl_err.cpp
)
)
# build shared library if not compiling static only
# build shared library if not compiling static only
if
(
NOT
"
${
CAF_BUILD_STATIC_ONLY
}
"
STREQUAL
"yes"
)
if
(
NOT CAF_BUILD_STATIC_ONLY
)
add_library
(
libcaf_opencl SHARED
${
LIBCAF_OPENCL_SRCS
}
add_library
(
libcaf_opencl_shared SHARED
${
LIBCAF_OPENCL_SRCS
}
${
LIBCAF_OPENCL_HDRS
}
${
LIBCAF_OPENCL_HDRS
}
${
OpenCL_INCLUDE_DIRS
}
)
${
OpenCL_INCLUDE_DIRS
}
)
target_link_libraries
(
libcaf_opencl_shared
${
LD_FLAGS
}
target_link_libraries
(
libcaf_opencl
${
LD_FLAGS
}
${
LIBCAF_CORE_LIBRARY
}
${
LIBCAF_CORE_LIBRARY
}
${
OpenCL_LIBRARIES
}
)
${
OpenCL_LIBRARIES
}
)
set
(
LIBRARY_SOVERSION
"
${
CAF_VERSION_MAJOR
}
"
)
set
(
LIBRARY_SOVERSION
"
${
CAF_VERSION_MAJOR
}
"
)
set_target_properties
(
libcaf_opencl
set_target_properties
(
libcaf_opencl
_shared
PROPERTIES
PROPERTIES
SOVERSION
"
${
LIBRARY_SOVERSION
}
"
SOVERSION
"
${
LIBRARY_SOVERSION
}
"
VERSION
"
${
CAF_VERSION
}
"
VERSION
"
${
CAF_VERSION
}
"
OUTPUT_NAME caf_opencl
)
OUTPUT_NAME caf_opencl
)
if
(
NOT
MINGW
)
if
(
NOT
WIN32
)
install
(
TARGETS libcaf_opencl LIBRARY DESTINATION lib
)
install
(
TARGETS libcaf_opencl
_shared
LIBRARY DESTINATION lib
)
endif
()
endif
()
endif
()
endif
()
# build static library only if --build-static or --build-static-only was set
# build static library only if --build-static or --build-static-only was set
if
(
CAF_BUILD_STATIC_ONLY OR CAF_BUILD_STATIC
)
if
(
CAF_BUILD_STATIC_ONLY OR CAF_BUILD_STATIC
)
add_library
(
libcaf_opencl
S
tatic STATIC
${
LIBCAF_OPENCL_HDRS
}
${
LIBCAF_OPENCL_SRCS
}
)
add_library
(
libcaf_opencl
_s
tatic STATIC
${
LIBCAF_OPENCL_HDRS
}
${
LIBCAF_OPENCL_SRCS
}
)
set_target_properties
(
libcaf_opencl
S
tatic PROPERTIES OUTPUT_NAME caf_opencl_static
)
set_target_properties
(
libcaf_opencl
_s
tatic PROPERTIES OUTPUT_NAME caf_opencl_static
)
install
(
TARGETS libcaf_opencl
S
tatic ARCHIVE DESTINATION lib
)
install
(
TARGETS libcaf_opencl
_s
tatic ARCHIVE DESTINATION lib
)
endif
()
endif
()
link_directories
(
${
LD_DIRS
}
)
link_directories
(
${
LD_DIRS
}
)
include_directories
(
.
${
INCLUDE_DIRS
}
)
include_directories
(
.
${
INCLUDE_DIRS
}
)
...
...
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