From e8366fc8f429f0bf93acce14ada783ed6b215181 Mon Sep 17 00:00:00 2001 From: Black Speedy <78355795+Black-Speedy@users.noreply.github.com> Date: Thu, 11 Jan 2024 19:36:18 +0100 Subject: [PATCH] Yes --- WebShare-Connect/CMakeLists.txt | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/WebShare-Connect/CMakeLists.txt b/WebShare-Connect/CMakeLists.txt index d57812d..24456dd 100644 --- a/WebShare-Connect/CMakeLists.txt +++ b/WebShare-Connect/CMakeLists.txt @@ -44,9 +44,24 @@ target_link_libraries(WebShare-Connect PRIVATE LibNice::LibNice ) +set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/") + +find_package(LibNice REQUIRED) # Link libraries to sender and receiver targets -target_link_libraries(sender PRIVATE czmq libzmq sha512 OpenSSL::SSL OpenSSL::Crypto) -target_link_libraries(receiver PRIVATE czmq) +target_link_libraries(sender PRIVATE + czmq + libzmq + sha512 + OpenSSL::SSL + OpenSSL::Crypto + LibNice::LibNice) + + set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/") + +find_package(LibNice REQUIRED) +target_link_libraries(receiver PRIVATE + czmq + LibNice::LibNice) target_link_libraries(sha512 PRIVATE OpenSSL::SSL OpenSSL::Crypto)