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
bd09c995
Commit
bd09c995
authored
1 year ago
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
build: find/link readline for upnpctrl
Change-Id: I8a3adaea1827e79340955a4859ce76f621367888
parent
cd8fea9d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+6
-0
6 additions, 0 deletions
CMakeLists.txt
Dockerfile
+2
-1
2 additions, 1 deletion
Dockerfile
with
8 additions
and
1 deletion
CMakeLists.txt
+
6
−
0
View file @
bd09c995
...
...
@@ -231,6 +231,12 @@ if (BUILD_TOOLS AND NOT MSVC)
target_include_directories
(
dnc PRIVATE
${
CMAKE_CURRENT_SOURCE_DIR
}
/tools
)
install
(
TARGETS dsh RUNTIME DESTINATION
${
CMAKE_INSTALL_BINDIR
}
)
find_library
(
READLINE_LIBRARIES readline
)
find_path
(
READLINE_INCLUDE_DIR readline/readline.h
)
add_library
(
readline STATIC IMPORTED
)
set_target_properties
(
readline PROPERTIES
IMPORTED_LOCATION
"
${
READLINE_LIBRARIES
}
"
INTERFACE_INCLUDE_DIRECTORIES
"
${
READLINE_INCLUDE_DIR
}
"
)
add_executable
(
upnpctrl
tools/upnp/upnpctrl.cpp
)
target_link_libraries
(
upnpctrl PRIVATE dhtnet fmt::fmt readline
)
...
...
This diff is collapsed.
Click to expand it.
Dockerfile
+
2
−
1
View file @
bd09c995
...
...
@@ -5,7 +5,8 @@ RUN apk add --no-cache \
nettle-dev
\
cppunit-dev gnutls-dev jsoncpp-dev
\
argon2-dev openssl-dev fmt-dev
\
http-parser-dev asio-dev msgpack-cxx-dev
http-parser-dev asio-dev msgpack-cxx-dev
\
readline-dev
# Build restinio
RUN
mkdir
restinio
&&
cd
restinio
\
...
...
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