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
e3fd9f5e
Commit
e3fd9f5e
authored
1 year ago
by
Amna Snene
Committed by
Adrien Béraud
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
build: add DHTNET_TESTABLE
Change-Id: I981310e277ddc38a42f813b472a39f70bf463f08
parent
38768307
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
+8
-1
8 additions, 1 deletion
CMakeLists.txt
with
8 additions
and
1 deletion
CMakeLists.txt
+
8
−
1
View file @
e3fd9f5e
...
...
@@ -6,6 +6,12 @@ project(dhtnet
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
)
...
...
@@ -34,6 +40,7 @@ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DMSGPACK_NO_BOOST -DMSGPACK_DISABLE_LE
option
(
DHTNET_PUPNP
"Enable UPnP support"
ON
)
option
(
DHTNET_NATPMP
"Enable NAT-PMP support"
ON
)
OPTION
(
DHTNET_TESTABLE
"Enable API for tests"
BUILD_TESTING
)
# Sources
list
(
APPEND dhtnet_SOURCES
...
...
@@ -124,7 +131,7 @@ if (DHTNET_NATPMP)
target_compile_definitions
(
dhtnet PRIVATE HAVE_LIBNATPMP
)
target_link_libraries
(
dhtnet PRIVATE
${
natpmp_LIBRARIES
}
)
endif
()
if
(
BUILD
_TEST
ING
)
if
(
DHTNET
_TEST
ABLE
)
target_compile_definitions
(
dhtnet PUBLIC DHTNET_TESTABLE
)
endif
()
target_compile_definitions
(
dhtnet PUBLIC PJ_AUTOCONF=1
)
...
...
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