mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-11-28 22:26:28 +08:00
65848d1e5f
Some developers would be happier with the gtest version provided from their package manager. Use it if it is installed the package provide cmake support. Fixed: https://github.com/ArthurSonzogni/FTXUI/issues/551
22 lines
457 B
CMake
22 lines
457 B
CMake
if (NOT FTXUI_BUILD_TESTS OR
|
|
NOT ${CMAKE_VERSION} VERSION_GREATER "3.11.4" OR
|
|
WIN32
|
|
)
|
|
return()
|
|
endif()
|
|
|
|
include(cmake/ftxui_find_google_benchmark.cmake)
|
|
|
|
add_executable(ftxui-benchmark
|
|
src/ftxui/dom/benchmark_test.cpp
|
|
)
|
|
ftxui_set_options(ftxui-benchmark)
|
|
target_link_libraries(ftxui-benchmark
|
|
PRIVATE dom
|
|
PRIVATE benchmark::benchmark
|
|
PRIVATE benchmark::benchmark_main
|
|
)
|
|
target_include_directories(ftxui-benchmark
|
|
PRIVATE src
|
|
)
|