30 lines
751 B
CMake
30 lines
751 B
CMake
#
|
|
# Copyright (c) 2019 Vinnie Falco (vinnie.falco@gmail.com)
|
|
#
|
|
# Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
#
|
|
# Official repository: https://github.com/boostorg/json
|
|
#
|
|
|
|
source_group("" FILES
|
|
Jamfile
|
|
bench.cpp
|
|
)
|
|
|
|
add_executable(bench
|
|
Jamfile
|
|
bench.cpp
|
|
)
|
|
|
|
target_include_directories(bench PRIVATE ../test)
|
|
target_link_libraries(bench PRIVATE Boost::json)
|
|
|
|
if(EXISTS lib/nlohmann/single_include/nlohmann/json.hpp)
|
|
target_compile_definitions(bench PRIVATE BOOST_JSON_HAS_NLOHMANN_JSON)
|
|
endif()
|
|
|
|
if(EXISTS lib/rapidjson/include/rapidjson/rapidjson.h)
|
|
target_compile_definitions(bench PRIVATE BOOST_JSON_HAS_RAPIDJSON)
|
|
endif()
|