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
e2c74e21
Commit
e2c74e21
authored
1 year ago
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
only build dvpn on Linux
Change-Id: I7027a8678919d4aae98c88b49800dac912c08ae3
parent
9deadefa
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+11
-8
11 additions, 8 deletions
CMakeLists.txt
with
11 additions
and
8 deletions
CMakeLists.txt
+
11
−
8
View file @
e2c74e21
...
...
@@ -307,14 +307,17 @@ if (BUILD_TOOLS AND NOT MSVC)
target_include_directories
(
dsh PRIVATE
${
CMAKE_CURRENT_SOURCE_DIR
}
/tools
)
install
(
TARGETS dsh RUNTIME DESTINATION
${
CMAKE_INSTALL_BINDIR
}
)
add_executable
(
dvpn
tools/dvpn/main.cpp
tools/dvpn/dvpn.cpp
tools/common.cpp
tools/dhtnet_crtmgr/dhtnet_crtmgr.cpp
)
target_link_libraries
(
dvpn PRIVATE dhtnet fmt::fmt yaml-cpp
)
target_include_directories
(
dvpn PRIVATE
${
CMAKE_CURRENT_SOURCE_DIR
}
/tools
)
install
(
TARGETS dvpn RUNTIME DESTINATION
${
CMAKE_INSTALL_BINDIR
}
)
# dvpn is a Linux-only tool
if
(
CMAKE_SYSTEM_NAME STREQUAL
"Linux"
)
add_executable
(
dvpn
tools/dvpn/main.cpp
tools/dvpn/dvpn.cpp
tools/common.cpp
tools/dhtnet_crtmgr/dhtnet_crtmgr.cpp
)
target_link_libraries
(
dvpn PRIVATE dhtnet fmt::fmt yaml-cpp
)
target_include_directories
(
dvpn PRIVATE
${
CMAKE_CURRENT_SOURCE_DIR
}
/tools
)
install
(
TARGETS dvpn RUNTIME DESTINATION
${
CMAKE_INSTALL_BINDIR
}
)
endif
()
find_library
(
READLINE_LIBRARIES readline
)
find_path
(
READLINE_INCLUDE_DIR readline/readline.h
)
...
...
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