From 53b5c0ecfa647a4fcb09daa78a83c13103044962 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <adrien.beraud@savoirfairelinux.com> Date: Tue, 28 Jun 2022 16:52:11 -0400 Subject: [PATCH] build/cmake: export used libraries to .pc file --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1aa5c528..47a8a33c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -63,6 +63,7 @@ if (NOT MSVC) find_package (Readline 6 REQUIRED) endif () pkg_search_module(argon2 REQUIRED libargon2) + set(argon2_lib ", libargon2") pkg_search_module(Jsoncpp jsoncpp) if (Jsoncpp_FOUND) add_definitions(-DOPENDHT_JSONCPP) @@ -82,9 +83,11 @@ if (NOT MSVC) add_library(fmt SHARED IMPORTED) find_library(HTTP_PARSER_LIBRARY http_parser) add_library(http_parser SHARED IMPORTED) + set(http_parser_lib "-lhttp_parser ") if (NOT Jsoncpp_FOUND) message(SEND_ERROR "Jsoncpp is required for DHT proxy support") endif() + set(jsoncpp_lib ", jsoncpp") if (OPENDHT_PROXY_OPENSSL) # https://cmake.org/cmake/help/latest/module/FindOpenSSL.html pkg_search_module(OPENSSL REQUIRED openssl) @@ -95,6 +98,7 @@ if (NOT MSVC) else () message(SEND_ERROR "OpenSSL is required for DHT proxy as specified") endif() + set(openssl_lib ", openssl") endif() else () set(OPENDHT_PROXY_OPENSSL OFF) -- GitLab