1
0
mirror of https://github.com/nlohmann/json synced 2024-12-25 01:51:06 +00:00
nlohmannjson/CMakeLists.txt

26 lines
428 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
2015-07-16 17:32:19 +00:00
"/EHsc"
2015-04-27 20:53:46 +00:00
)
2015-07-16 17:32:19 +00:00
2015-07-16 17:39:18 +00:00
STRING(REPLACE "/O2" "/Od" CMAKE_CXX_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE})
2015-07-16 17:32:19 +00:00
add_definitions(-D_SCL_SECURE_NO_WARNINGS)
2015-04-27 20:53:46 +00:00
else(MSVC)
set(CMAKE_CXX_FLAGS
"-std=c++11"
2015-04-27 20:53:46 +00:00
)
endif(MSVC)
2015-04-26 20:47:40 +00:00
include_directories(
src test
)