add MbedTLS cmake config.
This commit is contained in:
parent
3b04085b04
commit
2a85c87105
@ -1,4 +1,5 @@
|
||||
find_package(Boost REQUIRED COMPONENTS serialization)
|
||||
find_package(MbedTLS REQUIRED)
|
||||
|
||||
add_library(Encrypt
|
||||
Encrypt.h Encrypt.cpp
|
||||
@ -8,17 +9,12 @@ add_library(Encrypt
|
||||
|
||||
target_include_directories(Encrypt
|
||||
INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
PUBLIC ${MBEDTLS_INCLUDE_DIR}
|
||||
PRIVATE ${Boost_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
target_link_directories(Encrypt
|
||||
PUBLIC ${MBEDTLS_LIBRARY_DIRS}
|
||||
)
|
||||
|
||||
target_link_libraries(Encrypt
|
||||
PRIVATE mbedtls
|
||||
PRIVATE mbedcrypto
|
||||
PRIVATE MbedTLS::mbedtls
|
||||
PRIVATE MbedTLS::mbedcrypto
|
||||
|
||||
)
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
find_package(MbedTLS REQUIRED)
|
||||
|
||||
add_library(Nng
|
||||
Buffer.h Buffer.cpp
|
||||
ErrorCode.h ErrorCode.cpp
|
||||
@ -20,7 +22,7 @@ target_link_directories(Nng
|
||||
|
||||
target_link_libraries(Nng
|
||||
PUBLIC nng
|
||||
PUBLIC mbedtls
|
||||
PUBLIC mbedcrypto
|
||||
PUBLIC mbedx509
|
||||
PUBLIC MbedTLS::mbedtls
|
||||
PUBLIC MbedTLS::mbedcrypto
|
||||
PUBLIC MbedTLS::mbedx509
|
||||
)
|
Loading…
Reference in New Issue
Block a user