ext-cryptoppwin/CMakeLists.txt
Younes 0dd224c681 - Added cryptopp debug lib.
- Reduced cryptopp release lib size.
- Added condition to choose lib based on build type.
2024-02-09 22:59:55 -07:00

7 lines
328 B
CMake

add_library(cryptoppwin SHARED IMPORTED GLOBAL)
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
set_target_properties(cryptoppwin PROPERTIES IMPORTED_IMPLIB "${CMAKE_CURRENT_SOURCE_DIR}/lib/cryptlibd.lib")
else()
set_target_properties(cryptoppwin PROPERTIES IMPORTED_IMPLIB "${CMAKE_CURRENT_SOURCE_DIR}/lib/cryptlib.lib")
endif()