diff --git a/CMakeLists.txt b/CMakeLists.txt index 900be4e680cc289919389cd4051bfa89bc85c3c7..5268775408fead2bae57665735ecfe35aabf1b31 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/Dockerfile b/Dockerfile index b18078a365b6ab1136d1296e42713cc7ce9bf21c..e11cc368cab14e90862b9472d48fb7ea932369ed 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 \