File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,18 @@ if(NOT expected_POPULATED)
4949 FetchContent_Populate(expected)
5050endif (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+
5264include (CTest)
5365enable_testing ()
5466
@@ -80,7 +92,7 @@ set(LIB_SOURCES
8092 src/big_int.hpp src/big_int.cpp )
8193
8294add_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 )
8496target_include_directories (oc-mint-lib PUBLIC ${expected_SOURCE_DIR} /include src)
8597
8698add_executable (${PROJECT_NAME} src/main.cpp)
You can’t perform that action at this time.
0 commit comments