-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
34 lines (31 loc) · 1.08 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
cmake_minimum_required(VERSION 3.0.2)
project(format-json)
set(CMAKE_BUILD_TYPE Release)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(SOURCES
src/json/json_value.cpp
src/json/json_undefined.cpp
src/json/json_string.cpp
src/json/json_object.cpp
src/json/json_number.cpp
src/json/json_json.cpp
src/json/json_array.cpp
src/json/json_exception.cpp
# headers
src/json/json_value.h
src/json/json_undefined.h
src/json/json_string.h
src/json/json_object.h
src/json/json_number.h
src/json/json_null.h
src/json/json_json.h
src/json/json_boolean.h
src/json/json_array.h
src/json/json_leaf.h
src/json/json_exception.h)
add_library(format-json SHARED ${SOURCES})
install(TARGETS format-json DESTINATION lib)
install(DIRECTORY src/json/ DESTINATION include/format FILES_MATCHING PATTERN "*.h")
# If “make install” is invoked or INSTALL is built, this directory is prepended onto all install directories.
# This variable defaults to /usr/local on UNIX and c:/Program Files on Windows
# cmake .. -DCMAKE_INSTALL_PREFIX=../_install