Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dhtnet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
dhtnet
Commits
b96f10f2
Commit
b96f10f2
authored
2 years ago
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
cmake: install headers in subdir
Change-Id: Ia3685fd5c768c484e1b2d245c76884cf60de1aff
parent
31a29021
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+13
-17
13 additions, 17 deletions
CMakeLists.txt
with
13 additions
and
17 deletions
CMakeLists.txt
+
13
−
17
View file @
b96f10f2
...
...
@@ -38,17 +38,17 @@ list (APPEND dhtnet_SOURCES
)
list
(
APPEND dhtnet_HEADERS
include/
connectionmanager.h
include/
multiplexed_socket.h
include/
tls_session.h
include/
certstore.h
include/
ice_options.h
include/
fileutils.h
include/
string_utils.h
include/
ip_utils.h
include/
upnp/mapping.h
include/
upnp/upnp_context.h
include/
upnp/upnp_control.h
connectionmanager.h
multiplexed_socket.h
tls_session.h
certstore.h
ice_options.h
fileutils.h
string_utils.h
ip_utils.h
upnp/mapping.h
upnp/upnp_context.h
upnp/upnp_control.h
)
add_library
(
dhtnet
${
dhtnet_SOURCES
}
)
...
...
@@ -58,16 +58,12 @@ target_include_directories(dhtnet PUBLIC
$<INSTALL_INTERFACE:include>
)
target_compile_definitions
(
dhtnet PUBLIC PJ_AUTOCONF=1
)
set_target_properties
(
dhtnet PROPERTIES PUBLIC_HEADER
"
${
dhtnet_HEADERS
}
"
)
set_target_properties
(
dhtnet PROPERTIES PUBLIC_HEADER
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/include/
${
dhtnet_HEADERS
}
"
)
configure_file
(
dhtnet.pc.in dhtnet.pc @ONLY
)
install
(
TARGETS dhtnet
PUBLIC_HEADER DESTINATION
${
CMAKE_INSTALL_INCLUDEDIR
}
/dhtnet
)
# Install targets
install
(
DIRECTORY include
DESTINATION
${
CMAKE_INSTALL_
PREFIX
}
)
install
(
TARGETS dhtnet PUBLIC_HEADER
DESTINATION
${
CMAKE_INSTALL_
INCLUDEDIR
}
/dhtnet
)
install
(
FILES
${
CMAKE_CURRENT_BINARY_DIR
}
/dhtnet.pc DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
/pkgconfig
)
if
(
BUILD_TESTING AND NOT MSVC
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment