2019-08-25 22:00:16 +02:00
|
|
|
cmake_minimum_required(VERSION 3.5)
|
2016-02-01 16:50:25 +01:00
|
|
|
project(jsoncpp)
|
|
|
|
|
2017-11-14 18:03:26 +01:00
|
|
|
SET(CMAKE_CXX_STANDARD 11)
|
|
|
|
SET(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
SET(CMAKE_CXX_EXTENSIONS OFF)
|
2016-02-01 16:50:25 +01:00
|
|
|
|
|
|
|
set(SOURCES src/lib_json/json_reader.cpp
|
|
|
|
src/lib_json/json_value.cpp
|
|
|
|
src/lib_json/json_writer.cpp)
|
|
|
|
|
|
|
|
include_directories(${PROJECT_SOURCE_DIR}/include)
|
|
|
|
|
|
|
|
add_library(jsoncpp ${SOURCES})
|
|
|
|
|
|
|
|
install(TARGETS jsoncpp DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
|
|
|
|
install(DIRECTORY include/json DESTINATION ${CMAKE_INSTALL_PREFIX}/include/jsoncpp)
|