2023-01-15 03:37:42 +08:00
|
|
|
if (NOT FTXUI_BUILD_TESTS OR
|
|
|
|
NOT ${CMAKE_VERSION} VERSION_GREATER "3.11.4" OR
|
|
|
|
WIN32
|
2022-04-17 21:47:20 +08:00
|
|
|
)
|
2023-01-15 03:37:42 +08:00
|
|
|
return()
|
|
|
|
endif()
|
2021-06-26 21:14:27 +08:00
|
|
|
|
2023-01-15 03:37:42 +08:00
|
|
|
include(cmake/ftxui_find_google_benchmark.cmake)
|
|
|
|
|
|
|
|
add_executable(ftxui-benchmark
|
|
|
|
src/ftxui/dom/benchmark_test.cpp
|
2021-06-26 21:14:27 +08:00
|
|
|
)
|
2023-01-15 03:37:42 +08:00
|
|
|
ftxui_set_options(ftxui-benchmark)
|
|
|
|
target_link_libraries(ftxui-benchmark
|
|
|
|
PRIVATE dom
|
|
|
|
PRIVATE benchmark::benchmark
|
|
|
|
PRIVATE benchmark::benchmark_main
|
2021-06-26 21:14:27 +08:00
|
|
|
)
|
2023-01-15 03:37:42 +08:00
|
|
|
target_include_directories(ftxui-benchmark
|
|
|
|
PRIVATE src
|
2021-06-26 21:14:27 +08:00
|
|
|
)
|