Skip to content

Commit f385ad9

Browse files
committed
included crypto++ lib
1 parent 76965de commit f385ad9

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

CMakeLists.txt

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,18 @@ if(NOT expected_POPULATED)
4949
FetchContent_Populate(expected)
5050
endif(NOT expected_POPULATED)
5151

52+
# add crypt++ (+cmake) library
53+
set(CRYPTOPP_BUILD_TESTING Off)
54+
set(CRYPTOPP_INSTALL Off)
55+
56+
if(NOT cryptopp_POPULATED)
57+
FetchContent_Declare(cryptopp
58+
GIT_REPOSITORY https://github.com/abdes/cryptopp-cmake.git
59+
GIT_TAG CRYPTOPP_8_7_0)
60+
FetchContent_Populate(cryptopp)
61+
add_subdirectory(${cryptopp_SOURCE_DIR} ${cryptopp_BINARY_DIR})
62+
endif(NOT cryptopp_POPULATED)
63+
5264
include(CTest)
5365
enable_testing()
5466

@@ -80,7 +92,7 @@ set(LIB_SOURCES
8092
src/big_int.hpp src/big_int.cpp )
8193

8294
add_library(oc-mint-lib ${LIB_SOURCES})
83-
target_link_libraries(oc-mint-lib PUBLIC Crow::Crow)
95+
target_link_libraries(oc-mint-lib PUBLIC Crow::Crow cryptopp::cryptopp)
8496
target_include_directories(oc-mint-lib PUBLIC ${expected_SOURCE_DIR}/include src)
8597

8698
add_executable(${PROJECT_NAME} src/main.cpp)

0 commit comments

Comments
 (0)