Changeset View
Changeset View
Standalone View
Standalone View
src/crypto/CMakeLists.txt
Show All 26 Lines | |||||
target_compile_definitions(crypto PUBLIC HAVE_CONFIG_H) | target_compile_definitions(crypto PUBLIC HAVE_CONFIG_H) | ||||
# Use assembly is specified | # Use assembly is specified | ||||
option(CRYPTO_USE_ASM "Use assembly version of crypto primitives" ON) | option(CRYPTO_USE_ASM "Use assembly version of crypto primitives" ON) | ||||
if(CRYPTO_USE_ASM) | if(CRYPTO_USE_ASM) | ||||
target_compile_definitions(crypto PRIVATE USE_ASM) | target_compile_definitions(crypto PRIVATE USE_ASM) | ||||
endif() | endif() | ||||
# Dependencies | |||||
target_link_libraries(crypto OpenSSL::Crypto) | |||||
# Crypto libraries requiring hardware features | # Crypto libraries requiring hardware features | ||||
macro(add_crypto_library NAME) | macro(add_crypto_library NAME) | ||||
add_library(${NAME} ${ARGN}) | add_library(${NAME} ${ARGN}) | ||||
target_link_libraries(crypto ${NAME}) | target_link_libraries(crypto ${NAME}) | ||||
target_include_directories(${NAME} PRIVATE ..) | target_include_directories(${NAME} PRIVATE ..) | ||||
endmacro() | endmacro() | ||||
include(CheckCXXSourceCompiles) | include(CheckCXXSourceCompiles) | ||||
▲ Show 20 Lines • Show All 59 Lines • Show Last 20 Lines |