Kylin/Nng/CMakeLists.txt

26 lines
533 B
CMake
Raw Normal View History

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
PUBLIC mbedtls
PUBLIC mbedcrypto
PUBLIC mbedx509
)