summaryrefslogtreecommitdiff
path: root/vendor/benchmark.cmake
blob: 516e3cd33389dd5f18fe884a36f2a6c7f20438d8 (plain)
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
add_library(benchmark STATIC
    ${CMAKE_SOURCE_DIR}/vendor/benchmark/src/commandlineflags.cc
    ${CMAKE_SOURCE_DIR}/vendor/benchmark/src/console_reporter.cc
    ${CMAKE_SOURCE_DIR}/vendor/benchmark/src/complexity.cc
    ${CMAKE_SOURCE_DIR}/vendor/benchmark/src/csv_reporter.cc
    ${CMAKE_SOURCE_DIR}/vendor/benchmark/src/colorprint.cc
    ${CMAKE_SOURCE_DIR}/vendor/benchmark/src/sleep.cc
    ${CMAKE_SOURCE_DIR}/vendor/benchmark/src/benchmark.cc
    ${CMAKE_SOURCE_DIR}/vendor/benchmark/src/counter.cc
    ${CMAKE_SOURCE_DIR}/vendor/benchmark/src/benchmark_register.cc
    ${CMAKE_SOURCE_DIR}/vendor/benchmark/src/statistics.cc
    ${CMAKE_SOURCE_DIR}/vendor/benchmark/src/json_reporter.cc
    ${CMAKE_SOURCE_DIR}/vendor/benchmark/src/reporter.cc
    ${CMAKE_SOURCE_DIR}/vendor/benchmark/src/string_util.cc
    ${CMAKE_SOURCE_DIR}/vendor/benchmark/src/sysinfo.cc
    ${CMAKE_SOURCE_DIR}/vendor/benchmark/src/timers.cc
)

target_compile_definitions(benchmark PRIVATE
    HAVE_STEADY_CLOCK
)

target_include_directories(benchmark SYSTEM PUBLIC
    ${CMAKE_SOURCE_DIR}/vendor/benchmark/include
)