mirror of
https://github.com/troldal/OpenXLSX.git
synced 2025-05-09 18:31:28 +08:00
20 lines
1.1 KiB
CMake
20 lines
1.1 KiB
CMake
#=======================================================================================================================
|
|
# Preamble
|
|
#=======================================================================================================================
|
|
cmake_minimum_required(VERSION 3.15 FATAL_ERROR)
|
|
project(OpenXLSX.Benchmark)
|
|
|
|
#=======================================================================================================================
|
|
# Set up Google Benchmark
|
|
#=======================================================================================================================
|
|
find_package(benchmark REQUIRED)
|
|
|
|
set(BENCHMARK_ENABLE_TESTING OFF)
|
|
#add_subdirectory(gbench)
|
|
|
|
#=======================================================================================================================
|
|
# Define Benchmark targets
|
|
#=======================================================================================================================
|
|
add_executable(OpenXLSXBenchmark EXCLUDE_FROM_ALL Benchmark.cpp)
|
|
target_link_libraries(OpenXLSXBenchmark PRIVATE benchmark::benchmark benchmark::benchmark_main OpenXLSX::OpenXLSX)
|