-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
31 lines (24 loc) · 982 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
cmake_minimum_required(VERSION 3.7.1)
project(benchmark_jsonlibs VERSION 0.1.0)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(JSON_BuildTests OFF CACHE INTERNAL "")
add_definitions(-DSIMDJSON_BUILD_STATIC=ON)
add_compile_options(-O2)
add_subdirectory(thirdparty/benchmark)
add_subdirectory(thirdparty/json)
set(RAPIDJSON_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/thirdparty/rapidjson/include)
set(SAJSON_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/thirdparty/sajson/include)
set(GASON_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/thirdparty/gason/src)
add_subdirectory(thirdparty/simdjson)
add_subdirectory(thirdparty/gason)
include_directories(
${RAPIDJSON_INCLUDE_DIR}
${SAJSON_INCLUDE_DIR}
${GASON_INCLUDE_DIR}
)
enable_testing()
add_subdirectory(benchmarks)
file(COPY data/data_github DESTINATION ${CMAKE_BINARY_DIR}/benchmarks)
file(COPY data/data_marine DESTINATION ${CMAKE_BINARY_DIR}/benchmarks)
file(COPY data/data_simdjson DESTINATION ${CMAKE_BINARY_DIR}/benchmarks)