2016-04-07 20:16:21 +03:00
|
|
|
project(json11 CXX)
|
2015-08-20 00:53:28 +03:00
|
|
|
|
2016-04-07 20:16:21 +03:00
|
|
|
cmake_minimum_required(VERSION 3.2)
|
2015-08-20 00:53:28 +03:00
|
|
|
|
|
|
|
enable_testing()
|
|
|
|
|
2016-04-07 20:16:21 +03:00
|
|
|
add_library(json11 json11.cpp)
|
|
|
|
target_include_directories(json11 PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
target_compile_options(json11
|
|
|
|
PUBLIC -std=c++11
|
|
|
|
PRIVATE -fno-rtti -fno-exceptions -Wall -Wextra -Werror)
|
2015-08-20 00:53:28 +03:00
|
|
|
|
2016-04-07 20:16:21 +03:00
|
|
|
add_executable(json11_test test.cpp)
|
|
|
|
target_link_libraries(json11_test json11)
|