Kylin/Nng/CMakeLists.txt
2024-10-29 23:13:33 +08:00

26 lines
533 B
CMake

add_library(Nng
Buffer.h Buffer.cpp
ErrorCode.h ErrorCode.cpp
Listener.h Listener.cpp
Message.h Message.cpp
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
PUBLIC mbedtls
PUBLIC mbedcrypto
PUBLIC mbedx509
)