2023-03-24 22:29:21 +00:00
|
|
|
openmw_add_executable(openmw_esm_refid_benchmark benchrefid.cpp)
|
|
|
|
target_link_libraries(openmw_esm_refid_benchmark benchmark::benchmark components)
|
|
|
|
|
|
|
|
if (UNIX AND NOT APPLE)
|
|
|
|
target_link_libraries(openmw_esm_refid_benchmark ${CMAKE_THREAD_LIBS_INIT})
|
|
|
|
endif()
|
|
|
|
|
2024-03-08 00:22:42 +00:00
|
|
|
if (MSVC AND PRECOMPILE_HEADERS_WITH_MSVC)
|
2023-03-24 22:29:21 +00:00
|
|
|
target_precompile_headers(openmw_esm_refid_benchmark PRIVATE <algorithm>)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if (BUILD_WITH_CODE_COVERAGE)
|
|
|
|
target_compile_options(openmw_esm_refid_benchmark PRIVATE --coverage)
|
|
|
|
target_link_libraries(openmw_esm_refid_benchmark gcov)
|
|
|
|
endif()
|