Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cppdap
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
cppdap
Commits
3e6cfd6c
Commit
3e6cfd6c
authored
Jan 22, 2020
by
Ben Clayton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CMake: Make the cppdap target's include directory public
Avoids having to pull this in as an explicit include directory for projects that depend on cppdap.
parent
4abe43c1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
7 deletions
+1
-7
CMakeLists.txt
CMakeLists.txt
+1
-1
README.md
README.md
+0
-6
No files found.
CMakeLists.txt
View file @
3e6cfd6c
...
...
@@ -140,7 +140,7 @@ function(cppdap_set_target_options target)
# target_compile_options(${target} PRIVATE "-Wl,--no-undefined")
# endif()
target_include_directories
(
${
target
}
P
RIVATE
${
CPPDAP_INCLUDE_DIR
}
)
target_include_directories
(
${
target
}
P
UBLIC
${
CPPDAP_INCLUDE_DIR
}
)
endfunction
(
cppdap_set_target_options
)
###########################################################
...
...
README.md
View file @
3e6cfd6c
...
...
@@ -62,12 +62,6 @@ This will define the `cppdap` library target, which you can pass to `target_link
target_link_libraries
(
<target> cppdap
)
# replace <target> with the name of your project's target
```
You will also want to add the
`cppdap`
public headers to your project's include search paths so you can
`#include`
the
`cppdap`
headers:
```
cmake
target_include_directories
(
$<target> PRIVATE
"
${
CPPDAP_DIR
}
/include"
)
# replace <target> with the name of your project's target
```
You may also wish to specify your own paths to the third party libraries used by
`cppdap`
.
You can do this by setting any of the following variables before the call to
`add_subdirectory()`
:
...
...
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