Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
las3_pub
/
predictable_parallel_patterns
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
2448ea79
authored
Apr 02, 2019
by
FritzFlorian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support to install PLS as a cmake dependency in 3rd party projects.
parent
e1baf081
Pipeline
#1123
passed with stages
in 3 minutes 20 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
5 deletions
+19
-5
lib/pls/CMakeLists.txt
+17
-5
lib/pls/pls-config.cmake
+2
-0
No files found.
lib/pls/CMakeLists.txt
View file @
2448ea79
...
@@ -32,18 +32,30 @@ target_link_libraries(pls
...
@@ -32,18 +32,30 @@ target_link_libraries(pls
# Rules for istalling the library on a system
# Rules for istalling the library on a system
# ...binaries
# ...binaries
install
(
TARGETS pls
INSTALL
(
TARGETS pls
EXPORT pls-targets
LIBRARY
LIBRARY
DESTINATION lib
DESTINATION lib
/pls
ARCHIVE
ARCHIVE
DESTINATION lib
DESTINATION lib
/pls
)
)
# ...all headers in `include`
# ...all headers in `include`
INSTALL
(
INSTALL
(
DIRECTORY
${
CMAKE_CURRENT_SOURCE_DIR
}
/include/
DIRECTORY
${
CMAKE_CURRENT_SOURCE_DIR
}
/include/
pls
DESTINATION include
DESTINATION include
FILES_MATCHING PATTERN
"*.h*"
FILES_MATCHING PATTERN
"*.h*"
)
)
# ...allow our project to be a cmake dependency
install
(
EXPORT pls-targets
FILE plsTargets.cmake
NAMESPACE pls::
DESTINATION lib/pls
)
INSTALl
(
FILES pls-config.cmake
DESTINATION lib/pls
)
# Enable warnings/tidy code checking from our compiler
# Enable warnings/tidy code checking from our compiler
target_compile_options
(
pls PRIVATE
target_compile_options
(
pls PRIVATE
...
...
lib/pls/pls-config.cmake
0 → 100644
View file @
2448ea79
get_filename_component
(
SELF_DIR
"
${
CMAKE_CURRENT_LIST_FILE
}
"
PATH
)
include
(
${
SELF_DIR
}
/plsTargets.cmake
)
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