Compare commits

...

2 Commits

Author SHA1 Message Date
Gulliver 7d3066572c included crypto++ lib 2023-01-30 00:08:28 +01:00
Gulliver a2747b6934 updated catch2 to v3.3.1
continuous-integration/drone/push Build is passing Details
2023-01-29 23:59:28 +01:00
1 changed files with 14 additions and 2 deletions

View File

@ -46,6 +46,18 @@ if(NOT expected_POPULATED)
FetchContent_Populate(expected)
endif(NOT expected_POPULATED)
# add crypt++ (+cmake) library
set(CRYPTOPP_BUILD_TESTING Off)
set(CRYPTOPP_INSTALL Off)
if(NOT cryptopp_POPULATED)
FetchContent_Declare(cryptopp
GIT_REPOSITORY https://github.com/abdes/cryptopp-cmake.git
GIT_TAG CRYPTOPP_8_7_0)
FetchContent_Populate(cryptopp)
add_subdirectory(${cryptopp_SOURCE_DIR} ${cryptopp_BINARY_DIR})
endif(NOT cryptopp_POPULATED)
include(CTest)
enable_testing()
@ -54,7 +66,7 @@ set(CATCH_INSTALL_EXTRAS Off)
FetchContent_Declare(
Catch2
GIT_REPOSITORY https://github.com/catchorg/Catch2.git
GIT_TAG v3.2.0
GIT_TAG v3.3.1
)
FetchContent_MakeAvailable(Catch2)
@ -77,7 +89,7 @@ set(LIB_SOURCES
src/big_int.hpp src/big_int.cpp )
add_library(oc-mint-lib ${LIB_SOURCES})
target_link_libraries(oc-mint-lib PUBLIC Crow::Crow)
target_link_libraries(oc-mint-lib PUBLIC Crow::Crow cryptopp::cryptopp)
target_include_directories(oc-mint-lib PUBLIC ${expected_SOURCE_DIR}/include src)
add_executable(${PROJECT_NAME} src/main.cpp)