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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
dhtnet
Commits
665d1110
Commit
665d1110
authored
1 year ago
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
cmake: install headers
Change-Id: Id177fb8368bb29a7b449a8b566e5d24845d85a8d
parent
4cda2d71
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
+9
-3
9 additions, 3 deletions
CMakeLists.txt
with
9 additions
and
3 deletions
CMakeLists.txt
+
9
−
3
View file @
665d1110
cmake_minimum_required
(
VERSION 3.
16
)
cmake_minimum_required
(
VERSION 3.
22
)
project
(
dhtnet
)
set
(
CMAKE_CXX_STANDARD 17
)
set
(
CMAKE_CXX_STANDARD_REQUIRED ON
)
include
(
CTest
)
include
(
GNUInstallDirs
)
find_package
(
PkgConfig REQUIRED
)
find_package
(
msgpack REQUIRED QUIET CONFIG NAMES msgpack msgpack-cxx
)
...
...
@@ -33,8 +34,13 @@ list (APPEND dhtnet_HEADERS
add_library
(
dhtnet
${
dhtnet_SOURCES
}
)
target_link_libraries
(
dhtnet PUBLIC PkgConfig::opendht fmt::fmt msgpack-cxx
)
target_include_directories
(
dhtnet PUBLIC include
)
add_compile_definitions
(
PJ_AUTOCONF=1
)
target_include_directories
(
dhtnet PUBLIC
$<BUILD_INTERFACE:
${
CMAKE_CURRENT_SOURCE_DIR
}
/include>
$<INSTALL_INTERFACE:include>
)
target_compile_definitions
(
dhtnet PUBLIC PJ_AUTOCONF=1
)
install
(
TARGETS dhtnet
)
if
(
BUILD_TESTING AND NOT MSVC
)
pkg_search_module
(
Cppunit REQUIRED IMPORTED_TARGET cppunit
)
...
...
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