Skip to content

Instantly share code, notes, and snippets.

@greenjava
Created January 11, 2016 10:29
Show Gist options
  • Save greenjava/463c7e65ee472c285047 to your computer and use it in GitHub Desktop.
Save greenjava/463c7e65ee472c285047 to your computer and use it in GitHub Desktop.
jsoncpp BinPkgs
cmake_minimum_required(VERSION 3.0)
project(jsoncppBuilder)
include(ExternalProject)
set(CACHED_URL https://github.com/open-source-parsers/jsoncpp/archive/1.6.5.tar.gz)
set(JSONCPP_HASHSUM a2b121eaff56ec88cfd034d17685821a908d0d87bc319329b04f91a6552c1ac2)
set(JSONCPP_CMAKE_ARGS ${COMMON_CMAKE_ARGS}
-DBUILD_STATIC_LIBS:BOOL=OFF
-DBUILD_SHARED_LIBS:BOOL=ON
-DJSONCPP_WITH_TESTS:BOOL=OFF
-DJSONCPP_WITH_CMAKE_PACKAGE:BOOL=ON
)
ExternalProject_Add(
jsoncpp
URL ${CACHED_URL}
URL_HASH SHA256=${JSONCPP_HASHSUM}
DOWNLOAD_DIR ${ARCHIVE_DIR}
DOWNLOAD_NAME jsoncpp_1.6.5.tar.gz
INSTALL_DIR ${CMAKE_INSTALL_PREFIX}
CMAKE_ARGS ${JSONCPP_CMAKE_ARGS}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment