add nng cmake config.
This commit is contained in:
parent
2a85c87105
commit
c51e11b65e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user