Skip to content

Commit

Permalink
removed cryptopp, openssl shall be used instead for blinding (but not…
Browse files Browse the repository at this point in the history
… implemented yet)
  • Loading branch information
gittiver committed Jul 14, 2024
1 parent dac6a78 commit 6faba64
Show file tree
Hide file tree
Showing 2 changed files with 231 additions and 232 deletions.
25 changes: 13 additions & 12 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
cmake_minimum_required(VERSION 3.1.3)
cmake_minimum_required(VERSION 3.15)

enable_language(C)
enable_language(CXX)
set(CMAKE_CXX_STANDARD 17)

set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)
if(POLICY CMP0077)
cmake_policy(SET CMP0077 NEW)
endif()
Expand Down Expand Up @@ -31,7 +32,7 @@ set(CROW_BUILD_DOCS Off)
# add crow project to the build
FetchContent_Declare(crow
GIT_REPOSITORY https://github.com/CrowCpp/Crow.git
GIT_TAG v1.0+5
GIT_TAG v1.2.0
)

if(NOT crow_POPULATED)
Expand All @@ -49,16 +50,16 @@ if(NOT expected_POPULATED)
endif(NOT expected_POPULATED)

# add crypt++ (+cmake) library
set(CRYPTOPP_BUILD_TESTING Off)
set(CRYPTOPP_INSTALL Off)
#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)
#if(NOT cryptopp_POPULATED)
# FetchContent_Declare(cryptopp
# GIT_REPOSITORY https://github.com/abdes/cryptopp-cmake.git
# GIT_TAG CRYPTOPP_8_7_0_1)
# FetchContent_Populate(cryptopp)
# add_subdirectory(${cryptopp_SOURCE_DIR} ${cryptopp_BINARY_DIR})
#endif(NOT cryptopp_POPULATED)

include(CTest)
enable_testing()
Expand Down Expand Up @@ -91,7 +92,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 cryptopp::cryptopp)
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)
Expand Down
Loading

0 comments on commit 6faba64

Please sign in to comment.