json/CMakeLists.txt
Niels 5084159048 added changes from #105: MSVC fixes
- additionally, switch off optimization flags to maybe allow build to
complete on AppVeyor
2015-07-16 18:45:19 +02:00

23 lines
362 B
CMake

cmake_minimum_required(VERSION 2.8)
project(json CXX)
add_executable(json_unit
src/json.hpp test/catch.hpp test/unit.cpp
)
if(MSVC)
set(CMAKE_CXX_FLAGS
"/EHsc /Od"
)
add_definitions(-D_SCL_SECURE_NO_WARNINGS)
else(MSVC)
set(CMAKE_CXX_FLAGS
"-std=c++11 -stdlib=libc++"
)
endif(MSVC)
include_directories(
src test
)