view json/json11/CMakeLists.txt @ 60:8a4bcb3dc3a6

Replace exceptions throughout the JSON-handling and adapter code with string-arg error handling. No longer need exception handling enabled in Emscripten (with its consequent runtime overhead - though we still need to check whether this error handling regime is actually faster).
author Chris Cannam <c.cannam@qmul.ac.uk>
date Tue, 20 Sep 2016 16:35:47 +0100
parents 6e8607ebad03
children
line wrap: on
line source
project(json11)

cmake_minimum_required(VERSION 2.8)

enable_testing()

add_definitions(
    -std=c++11
    -fno-rtti
    -fno-exceptions
    -Wall
    -Wextra
    -Werror)

set(json11_SRCS json11.cpp)

add_library(json11 STATIC ${json11_SRCS})

add_test(json11_test json11_test)

add_executable(json11_test ${json11_SRCS} test.cpp)