mirror of
https://github.com/nlohmann/json.git
synced 2024-12-01 03:19:03 +08:00
22 lines
311 B
CMake
22 lines
311 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"
|
|
)
|
|
else(MSVC)
|
|
set(CMAKE_CXX_FLAGS
|
|
"-std=c++11 -stdlib=libc++"
|
|
)
|
|
endif(MSVC)
|
|
|
|
include_directories(
|
|
src test
|
|
)
|