mirror of
https://github.com/OpenCoin/oc-mint-cpp.git
synced 2024-12-22 15:49:40 +01:00
included crypto++ lib
This commit is contained in:
parent
ed525909bb
commit
6bc5d0e8cd
@ -46,6 +46,17 @@ if(NOT expected_POPULATED)
|
|||||||
FetchContent_Populate(expected)
|
FetchContent_Populate(expected)
|
||||||
endif(NOT expected_POPULATED)
|
endif(NOT expected_POPULATED)
|
||||||
|
|
||||||
|
|
||||||
|
# add crypt++ (+cmake) library
|
||||||
|
FetchContent_Declare(cryptopp
|
||||||
|
GIT_REPOSITORY https://github.com/abdes/cryptopp-cmake.git
|
||||||
|
GIT_TAG CRYPTOPP_8_7_0)
|
||||||
|
|
||||||
|
if(NOT cryptopp_POPULATED)
|
||||||
|
FetchContent_Populate(cryptopp)
|
||||||
|
add_subdirectory(${cryptopp_SOURCE_DIR} ${cryptopp_BINARY_DIR})
|
||||||
|
endif(NOT cryptopp_POPULATED)
|
||||||
|
|
||||||
include(CTest)
|
include(CTest)
|
||||||
enable_testing()
|
enable_testing()
|
||||||
|
|
||||||
@ -77,7 +88,7 @@ set(LIB_SOURCES
|
|||||||
src/big_int.hpp src/big_int.cpp )
|
src/big_int.hpp src/big_int.cpp )
|
||||||
|
|
||||||
add_library(oc-mint-lib ${LIB_SOURCES})
|
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)
|
target_include_directories(oc-mint-lib PUBLIC ${expected_SOURCE_DIR}/include src)
|
||||||
|
|
||||||
add_executable(${PROJECT_NAME} src/main.cpp)
|
add_executable(${PROJECT_NAME} src/main.cpp)
|
||||||
|
Loading…
Reference in New Issue
Block a user