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
41d76621
Commit
41d76621
authored
1 year ago
by
Amna Snene
Browse files
Options
Downloads
Patches
Plain Diff
build: add option to build opendht and pjproject
Change-Id: I98e6f5d4b579fcc21238d3537eed486320810516
parent
8e0e1e08
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+13
-2
13 additions, 2 deletions
CMakeLists.txt
with
13 additions
and
2 deletions
CMakeLists.txt
+
13
−
2
View file @
41d76621
...
...
@@ -19,8 +19,19 @@ option(DHTNET_NATPMP "Enable NAT-PMP support" ON)
option
(
DHTNET_TESTABLE
"Enable API for tests"
ON
)
option
(
BUILD_TOOLS
"Build tools"
ON
)
option
(
BUILD_BENCHMARKS
"Build benchamrks"
ON
)
option
(
BUILD_DEPENDENCIES
"Build dependencies"
ON
)
if
(
NOT MSVC
)
if
(
BUILD_DEPENDENCIES
)
set
(
DEPENDENCIES_PATH
${
CMAKE_CURRENT_SOURCE_DIR
}
/dependencies/install/
${
TARGET
}
)
include
(
GNUInstallDirs
)
message
(
"dependencies path:
${
DEPENDENCIES_PATH
}
"
)
list
(
APPEND CMAKE_FIND_ROOT_PATH
${
DEPENDENCIES_PATH
}
)
set
(
CMAKE_FIND_ROOT_PATH_MODE_PACKAGE BOTH
)
list
(
APPEND CMAKE_PREFIX_PATH
${
DEPENDENCIES_PATH
}
)
endif
()
find_package
(
PkgConfig REQUIRED
)
find_package
(
msgpack-cxx CONFIG
)
...
...
@@ -32,8 +43,8 @@ if (NOT MSVC)
endif
()
find_package
(
fmt
)
pkg_
check
_module
s
(
opendht REQUIRED IMPORTED_TARGET opendht
>=2.6.0
)
pkg_
check
_module
s
(
pjproject REQUIRED IMPORTED_TARGET libpjproject
)
pkg_
search
_module
(
opendht REQUIRED IMPORTED_TARGET opendht
)
pkg_
search
_module
(
pjproject REQUIRED IMPORTED_TARGET libpjproject
)
else
()
set
(
WIN32_DEP_DIR
${
PROJECT_SOURCE_DIR
}
/../
)
include_directories
(
...
...
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