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 @@ -46,6 +46,18 @@ if(NOT expected_POPULATED)
4646 FetchContent_Populate(expected)
4747endif (NOT expected_POPULATED)
4848
49+ # add crypt++ (+cmake) library
50+ set (CRYPTOPP_BUILD_TESTING Off )
51+ set (CRYPTOPP_INSTALL Off )
52+
53+ if (NOT cryptopp_POPULATED)
54+ FetchContent_Declare(cryptopp
55+ GIT_REPOSITORY https://github.com/abdes/cryptopp-cmake.git
56+ GIT_TAG CRYPTOPP_8_7_0)
57+ FetchContent_Populate(cryptopp)
58+ add_subdirectory (${cryptopp_SOURCE_DIR} ${cryptopp_BINARY_DIR} )
59+ endif (NOT cryptopp_POPULATED)
60+
4961include (CTest)
5062enable_testing ()
5163
@@ -77,7 +89,7 @@ set(LIB_SOURCES
7789 src/big_int.hpp src/big_int.cpp )
7890
7991add_library (oc-mint-lib ${LIB_SOURCES} )
80- target_link_libraries (oc-mint-lib PUBLIC Crow::Crow)
92+ target_link_libraries (oc-mint-lib PUBLIC Crow::Crow cryptopp::cryptopp )
8193target_include_directories (oc-mint-lib PUBLIC ${expected_SOURCE_DIR} /include src)
8294
8395add_executable (${PROJECT_NAME} src/main.cpp)
You can’t perform that action at this time.
0 commit comments