Mercurial > hg > piper-cpp
annotate json11/CMakeLists.txt @ 75:81e1c48e97f9
Rearrange and rename to Piper C++ structure
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Mon, 10 Oct 2016 16:31:09 +0100 |
parents | |
children |
rev | line source |
---|---|
c@75 | 1 project(json11) |
c@75 | 2 |
c@75 | 3 cmake_minimum_required(VERSION 2.8) |
c@75 | 4 |
c@75 | 5 enable_testing() |
c@75 | 6 |
c@75 | 7 add_definitions( |
c@75 | 8 -std=c++11 |
c@75 | 9 -fno-rtti |
c@75 | 10 -fno-exceptions |
c@75 | 11 -Wall |
c@75 | 12 -Wextra |
c@75 | 13 -Werror) |
c@75 | 14 |
c@75 | 15 set(json11_SRCS json11.cpp) |
c@75 | 16 |
c@75 | 17 add_library(json11 STATIC ${json11_SRCS}) |
c@75 | 18 |
c@75 | 19 add_test(json11_test json11_test) |
c@75 | 20 |
c@75 | 21 add_executable(json11_test ${json11_SRCS} test.cpp) |