diff --git a/extdep/CMakeLists.txt b/extdep/CMakeLists.txt index abf3d6998..766053655 100644 --- a/extdep/CMakeLists.txt +++ b/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) diff --git a/extdep/cryptopp.cmake b/extdep/cryptopp.cmake index e60a1fa5e..a8e28b43e 100644 --- a/extdep/cryptopp.cmake +++ b/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() diff --git a/extdep/curl.cmake b/extdep/curl.cmake new file mode 100644 index 000000000..c98c98b9f --- /dev/null +++ b/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 "" + ) + +