From c110b6404f6e002b9c4aabf8b36800f6097e0284 Mon Sep 17 00:00:00 2001 From: Alexander Shishenko Date: Sun, 27 Dec 2015 02:23:33 +0300 Subject: [PATCH] Added CRYPTOPP_DATA_DIR option in cmake. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c177acbb..67eff77b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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