File tree 1 file changed +13
-1
lines changed
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)
46
46
FetchContent_Populate(expected)
47
47
endif (NOT expected_POPULATED)
48
48
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
+
49
61
include (CTest)
50
62
enable_testing ()
51
63
@@ -77,7 +89,7 @@ set(LIB_SOURCES
77
89
src/big_int.hpp src/big_int.cpp )
78
90
79
91
add_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 )
81
93
target_include_directories (oc-mint-lib PUBLIC ${expected_SOURCE_DIR} /include src)
82
94
83
95
add_executable (${PROJECT_NAME} src/main.cpp)
You can’t perform that action at this time.
0 commit comments