Files
MapLibreParticleLab/cmake/benchmark.cmake
Alexander Shalamov 86d2e928f2 [core] Vendor libbenchmark
Prebuilt binaries for libbenchmark might be incompatible with some
environments, for example, when mbgl-benchmark target is compiled
on host with GCC and linked against mason's clang 5.0 compiled binaries.
Vendored libbenchmark avoids aforementioned issue, as the target and
the binary compiled with same compiler / options.
2018-11-08 14:19:23 +02:00

31 lines
763 B
CMake

# Modify cmake/benchmark-files.txt to change the source files for this target.
load_sources_list(MBGL_BENCHMARK_FILES cmake/benchmark-files.txt)
add_executable(mbgl-benchmark ${MBGL_BENCHMARK_FILES})
target_include_directories(mbgl-benchmark
PRIVATE src
PRIVATE benchmark/include
PRIVATE benchmark/src
PRIVATE platform/default
)
target_link_libraries(mbgl-benchmark
PRIVATE mbgl-core
PRIVATE benchmark
)
mbgl_platform_benchmark()
create_source_groups(mbgl-benchmark)
set_target_properties(mbgl-benchmark PROPERTIES FOLDER "Executables")
initialize_xcode_cxx_build_settings(mbgl-benchmark)
xcode_create_scheme(
TARGET mbgl-benchmark
OPTIONAL_ARGS
"--benchmark_filter=Category.*"
"--benchmark_repetitions=1"
)