1
0
mirror of https://github.com/nlohmann/json synced 2024-12-02 00:20:06 +00:00
nlohmannjson/CMakeLists.txt
2015-07-16 19:39:18 +02:00

26 lines
443 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"
)
STRING(REPLACE "/O2" "/Od" CMAKE_CXX_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE})
add_definitions(-D_SCL_SECURE_NO_WARNINGS)
else(MSVC)
set(CMAKE_CXX_FLAGS
"-std=c++11 -stdlib=libc++"
)
endif(MSVC)
include_directories(
src test
)