summaryrefslogtreecommitdiff
path: root/cmake/benchmark.cmake
blob: 0752647a2d96f85f93e93c879693036b5fdc03b1 (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
26
add_executable(mbgl-benchmark
    ${MBGL_BENCHMARK_FILES}
)

target_compile_options(mbgl-benchmark
    PRIVATE -fvisibility-inlines-hidden
)

target_include_directories(mbgl-benchmark
    PRIVATE include
    PRIVATE src # TODO: eliminate
    PRIVATE benchmark/include
    PRIVATE benchmark/src
    PRIVATE platform/default
)

target_link_libraries(mbgl-benchmark
    PRIVATE mbgl-core
)

target_add_mason_package(mbgl-benchmark PRIVATE benchmark)
target_add_mason_package(mbgl-benchmark PRIVATE rapidjson)

mbgl_platform_benchmark()

create_source_groups(mbgl-benchmark)