Browse Source

argtable && jsoncpp msbuild

cl-refactor
debris 10 years ago
parent
commit
01167d1b35
  1. 4
      extdep/CMakeLists.txt
  2. 12
      extdep/argtable2.cmake
  3. 15
      extdep/jsoncpp.cmake

4
extdep/CMakeLists.txt

@ -9,7 +9,9 @@ set(ETH_DEPENDENCY_INSTALL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/install/${_system_na
file(MAKE_DIRECTORY ${ETH_DEPENDENCY_INSTALL_DIR}/lib)
file(MAKE_DIRECTORY ${ETH_DEPENDENCY_INSTALL_DIR}/include)
include(cryptopp.cmake)
include(jsoncpp.cmake)
#include(argtable2.cmake)
#include(cryptopp.cmake)
# will be re-eanbled later
# include(curl.cmake)
#include(json-rpc-cpp.cmake)

12
extdep/argtable2.cmake

@ -0,0 +1,12 @@
if(APPLE)
elseif(WIN32)
ExternalProject_Add(argtable2
URL http://sourceforge.net/projects/argtable/files/argtable/argtable-2.13/argtable2-13.tar.gz
BINARY_DIR argtable2-prefix/src/argtable2
CONFIGURE_COMMAND cmake .
BUILD_COMMAND devenv argtable2.sln /build release
INSTALL_COMMAND cmd /c cp src/Release/argtable2.lib ${ETH_DEPENDENCY_INSTALL_DIR}/lib && cp src/argtable2.h ${ETH_DEPENDENCY_INSTALL_DIR}/include
)
else()
endif()

15
extdep/jsoncpp.cmake

@ -0,0 +1,15 @@
if(APPLE)
elseif(WIN32)
file(MAKE_DIRECTORY ${ETH_DEPENDENCY_INSTALL_DIR}/include/jsoncpp)
ExternalProject_Add(jsoncpp
GIT_REPOSITORY https://github.com/open-source-parsers/jsoncpp
GIT_TAG svn-import
BINARY_DIR jsoncpp-prefix/src/jsoncpp
CONFIGURE_COMMAND cmake .
BUILD_COMMAND devenv jsoncpp.sln /build release
INSTALL_COMMAND cmd /c cp lib/Release/jsoncpp.lib ${ETH_DEPENDENCY_INSTALL_DIR}/lib && cp -R include/json ${ETH_DEPENDENCY_INSTALL_DIR}/include/jsoncpp
)
else()
endif()
Loading…
Cancel
Save