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
b975dbfd
Commit
b975dbfd
authored
1 year ago
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
cmake: remove duplicate code, enable testable APIs by default
Change-Id: If0adf52f01baed1ddc35198024289d888598f0d2
parent
e3fd9f5e
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
+2
-9
2 additions, 9 deletions
CMakeLists.txt
with
2 additions
and
9 deletions
CMakeLists.txt
+
2
−
9
View file @
b975dbfd
...
...
@@ -4,14 +4,6 @@ project(dhtnet
LANGUAGES CXX
DESCRIPTION
"A C++ library for NAT traversal and secure communication"
)
option
(
BUILD_TOOLS
"Build dnc"
ON
)
OPTION
(
LIBJAMI_TESTABLE
"Enable API for tests"
ON
)
IF
(
LIBJAMI_TESTABLE
)
ADD_DEFINITIONS
(
-DLIBJAMI_TESTABLE
)
ENDIF
(
LIBJAMI_TESTABLE
)
set
(
CMAKE_CXX_STANDARD 17
)
set
(
CMAKE_CXX_STANDARD_REQUIRED ON
)
include
(
CTest
)
...
...
@@ -38,9 +30,10 @@ pkg_check_modules (pjproject REQUIRED IMPORTED_TARGET libpjproject)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-DMSGPACK_NO_BOOST -DMSGPACK_DISABLE_LEGACY_NIL -DMSGPACK_DISABLE_LEGACY_CONVERT"
)
option
(
BUILD_TOOLS
"Build dnc"
ON
)
option
(
DHTNET_PUPNP
"Enable UPnP support"
ON
)
option
(
DHTNET_NATPMP
"Enable NAT-PMP support"
ON
)
OPTION
(
DHTNET_TESTABLE
"Enable API for tests"
BUILD_TESTING
)
option
(
DHTNET_TESTABLE
"Enable API for tests"
ON
)
# Sources
list
(
APPEND dhtnet_SOURCES
...
...
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