Browse Source

cryptopp compiling on macos

cl-refactor
Marek Kotewicz 10 years ago
parent
commit
1306817633
  1. 1
      extdep/CMakeLists.txt
  2. 12
      extdep/cryptopp.cmake
  3. 11
      extdep/curl.cmake

1
extdep/CMakeLists.txt

@ -5,6 +5,7 @@ include(ExternalProject)
# dependencies will be installed into this directory
set(ETH_DEPENDENCY_INSTALL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/install")
file(MAKE_DIRECTORY ${ETH_DEPENDENCY_INSTALL_DIR})
include(cryptopp.cmake)
#include(miniupnpc.cmake)

12
extdep/cryptopp.cmake

@ -1,3 +1,12 @@
if(${APPLE})
ExternalProject_Add(cryptopp
URL http://www.cryptopp.com/cryptopp562.zip
BINARY_DIR cryptopp-prefix/src/cryptopp
CONFIGURE_COMMAND ""
BUILD_COMMAND make -j 3
INSTALL_COMMAND make dynamic install PREFIX=${ETH_DEPENDENCY_INSTALL_DIR}
)
else()
ExternalProject_Add(
cryptopp
URL https://github.com/mmoss/cryptopp/archive/v5.6.2.zip
@ -6,6 +15,5 @@ ExternalProject_Add(
BUILD_COMMAND scons --shared --prefix=${ETH_DEPENDENCY_INSTALL_DIR}
INSTALL_COMMAND ""
)
endif()

11
extdep/curl.cmake

@ -0,0 +1,11 @@
include(ExternalProject)
ExternalProject_Add(curl
URL http://curl.haxx.se/download/curl-7.38.0.tar.bz2
BINARY_DIR curl-prefix/src/curl
CONFIGURE_COMMAND ./configure --with-darwinssl
BUILD_COMMAND make -j 3
INSTALL_COMMAND ""
)
Loading…
Cancel
Save