Created
January 11, 2016 10:29
-
-
Save greenjava/463c7e65ee472c285047 to your computer and use it in GitHub Desktop.
jsoncpp BinPkgs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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