1
0
mirror of https://github.com/DigitalDevices/pvr.octonet.git synced 2023-10-10 13:36:57 +02:00
pvr.octonet/depends/common/jsoncpp/CMakeLists.txt
2019-09-21 00:42:34 +02:00

18 lines
507 B
CMake

cmake_minimum_required(VERSION 3.5)
project(jsoncpp)
SET(CMAKE_CXX_STANDARD 11)
SET(CMAKE_CXX_STANDARD_REQUIRED ON)
SET(CMAKE_CXX_EXTENSIONS OFF)
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)