diff --git a/Nng/CMakeLists.txt b/Nng/CMakeLists.txt index 56d0302..1f0dcf5 100644 --- a/Nng/CMakeLists.txt +++ b/Nng/CMakeLists.txt @@ -1,4 +1,5 @@ find_package(MbedTLS REQUIRED) +find_package(nng CONFIG REQUIRED) add_library(Nng Buffer.h Buffer.cpp @@ -11,17 +12,11 @@ add_library(Nng target_include_directories(Nng PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} - PUBLIC ${NNG_INCLUDE_DIR} PUBLIC ${Boost_INCLUDE_DIRS} ) -target_link_directories(Nng - PUBLIC ${MBEDTLS_LIBRARY_DIRS} - PUBLIC ${NNG_LIBRARY_DIRS} -) - target_link_libraries(Nng - PUBLIC nng + PUBLIC nng::nng PUBLIC MbedTLS::mbedtls PUBLIC MbedTLS::mbedcrypto PUBLIC MbedTLS::mbedx509