json/CMakeLists.txt

22 lines
311 B
CMake
Raw Normal View History

2015-04-26 21:56:42 +00:00
cmake_minimum_required(VERSION 2.8)
2015-04-26 20:47:40 +00:00
project(json CXX)
add_executable(json_unit
src/json.hpp test/catch.hpp test/unit.cpp
)
2015-04-27 20:53:46 +00:00
if(MSVC)
set(CMAKE_CXX_FLAGS
"/EHsc"
)
else(MSVC)
set(CMAKE_CXX_FLAGS
"-std=c++11 -stdlib=libc++"
)
endif(MSVC)
2015-04-26 20:47:40 +00:00
include_directories(
src test
)