Browse Source

cryptopp as external project

cl-refactor
Marek Kotewicz 10 years ago
parent
commit
e33517a47d
  1. 15
      cmake/EthDependenciesDeprecated.cmake
  2. 1
      libdevcrypto/CMakeLists.txt

15
cmake/EthDependenciesDeprecated.cmake

@ -6,17 +6,13 @@
include(ExternalProject)
ExternalProject_Add(project_cryptopp
URL http://www.cryptopp.com/cryptopp562.zip
BINARY_DIR project_cryptopp-prefix/src/project_cryptopp
CONFIGURE_COMMAND ""
BUILD_COMMAND make -j 3
INSTALL_COMMAND ""
URL http://www.cryptopp.com/cryptopp562.zip
BINARY_DIR project_cryptopp-prefix/src/project_cryptopp
CONFIGURE_COMMAND ""
BUILD_COMMAND make -j 3
INSTALL_COMMAND ""
)
if("${TARGET_PLATFORM}" STREQUAL "w64")
# set(MINIUPNPC_LS /usr/x86_64-w64-mingw32/lib/libminiupnpc.a)
set(LEVELDB_LS leveldb)
@ -27,6 +23,7 @@ else()
set(CRYPTOPP_ID ${CMAKE_CURRENT_BINARY_DIR}/project_cryptopp-prefix/src/project_cryptopp)
set(CRYPTOPP_LS cryptopp)
link_directories(${CMAKE_CURRENT_BINARY_DIR}/project_cryptopp-prefix/src/project_cryptopp)
if (ID AND LS)
message(STATUS "Found Crypto++: ${ID}, ${LS}")

1
libdevcrypto/CMakeLists.txt

@ -15,6 +15,7 @@ file(GLOB HEADERS "*.h")
include_directories(..)
add_dependencies(${EXECUTABLE} project_cryptopp)
target_link_libraries(${EXECUTABLE} devcore)
target_link_libraries(${EXECUTABLE} secp256k1)
target_link_libraries(${EXECUTABLE} gmp)

Loading…
Cancel
Save