2024-11-25 18:42:06 +08:00
|
|
|
find_package(MbedTLS REQUIRED)
|
|
|
|
|
2024-10-29 21:51:37 +08:00
|
|
|
add_library(Nng
|
|
|
|
Buffer.h Buffer.cpp
|
|
|
|
ErrorCode.h ErrorCode.cpp
|
|
|
|
Listener.h Listener.cpp
|
2024-10-29 23:13:33 +08:00
|
|
|
Message.h Message.cpp
|
2024-10-29 21:51:37 +08:00
|
|
|
Socket.h Socket.cpp
|
|
|
|
SocketAisoWrapper.h SocketAisoWrapper.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
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
|
2024-11-25 18:42:06 +08:00
|
|
|
PUBLIC MbedTLS::mbedtls
|
|
|
|
PUBLIC MbedTLS::mbedcrypto
|
|
|
|
PUBLIC MbedTLS::mbedx509
|
2024-10-29 21:51:37 +08:00
|
|
|
)
|