Kylin/Encrypt/CMakeLists.txt

26 lines
499 B
CMake
Raw Normal View History

2023-08-01 13:54:17 +08:00
find_package(Boost REQUIRED COMPONENTS serialization)
2024-11-25 18:42:06 +08:00
find_package(MbedTLS REQUIRED)
2023-08-01 13:54:17 +08:00
add_library(Encrypt
Encrypt.h Encrypt.cpp
MessageDigest.h MessageDigest.cpp
SecureHashAlgorithm.h SecureHashAlgorithm.cpp
)
target_include_directories(Encrypt
INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}
PRIVATE ${Boost_INCLUDE_DIRS}
)
2024-11-04 17:46:31 +08:00
target_link_libraries(Encrypt
2024-12-02 23:22:46 +08:00
PUBLIC MbedTLS::mbedtls
2024-11-25 18:42:06 +08:00
PRIVATE MbedTLS::mbedcrypto
2024-11-04 17:46:31 +08:00
)
2023-08-01 13:54:17 +08:00
if(UNIX)
target_compile_options(Encrypt
PRIVATE -fPIC
)
endif()