Added CRYPTOPP_DATA_DIR option in cmake.

pull/88/head
Alexander Shishenko 2015-12-27 02:23:33 +03:00
parent 79882d4c7d
commit c110b6404f
No known key found for this signature in database
GPG Key ID: 5165F41B94E12C76
1 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,7 @@ option(BUILD_DOCUMENTATION "Use Doxygen to create the HTML based API documentati
option(DISABLE_ASM "Disable ASM" OFF)
option(DISABLE_SSSE3 "Disable SSSE3" OFF)
option(DISABLE_AESNI "Disable AES-NI" OFF)
set(CRYPTOPP_DATA_DIR "" CACHE PATH "Crypto++ test data directory")
#============================================================================
# Internal compiler options
@ -41,6 +42,9 @@ endif()
if(DISABLE_AESNI)
add_definitions(-DCRYPTOPP_DISABLE_AESNI)
endif()
if(NOT CRYPTOPP_DATA_DIR STREQUAL "")
add_definitions(-DCRYPTOPP_DATA_DIR=${CRYPTOPP_DATA_DIR})
endif()
#============================================================================
# Sources & headers