2023-02-03 15:30:58 +01:00
|
|
|
openmw_add_executable(openmw_settings_access_benchmark access.cpp)
|
|
|
|
target_link_libraries(openmw_settings_access_benchmark benchmark::benchmark components)
|
|
|
|
|
2023-04-23 15:57:10 +02:00
|
|
|
target_compile_definitions(openmw_settings_access_benchmark
|
|
|
|
PRIVATE OPENMW_PROJECT_SOURCE_DIR=u8"${PROJECT_SOURCE_DIR}")
|
|
|
|
|
2023-02-03 15:30:58 +01:00
|
|
|
if (UNIX AND NOT APPLE)
|
|
|
|
target_link_libraries(openmw_settings_access_benchmark ${CMAKE_THREAD_LIBS_INIT})
|
|
|
|
endif()
|
|
|
|
|
2024-03-08 01:22:42 +01:00
|
|
|
if (MSVC AND PRECOMPILE_HEADERS_WITH_MSVC)
|
2023-02-03 15:30:58 +01:00
|
|
|
target_precompile_headers(openmw_settings_access_benchmark PRIVATE <algorithm>)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if (BUILD_WITH_CODE_COVERAGE)
|
|
|
|
target_compile_options(openmw_settings_access_benchmark PRIVATE --coverage)
|
|
|
|
target_link_libraries(openmw_settings_access_benchmark gcov)
|
|
|
|
endif()
|