mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-11-25 20:27:31 +08:00
5ee4ec40de
The target_compile_features command allows setting PUBLIC compile features for the library, making it implicit for the applications linking it. This reduces the CMake boilerplate required to set up a dependent project (eg. ftxui-starter).
20 lines
494 B
CMake
20 lines
494 B
CMake
if (NOT WIN32)
|
|
FetchContent_Declare(googlebenchmark
|
|
GIT_REPOSITORY "https://github.com/google/benchmark"
|
|
GIT_TAG 62937f91b5c763a8e119d0c20c67b87bde8eff1c
|
|
)
|
|
FetchContent_MakeAvailable(googlebenchmark)
|
|
|
|
add_executable(ftxui_benchmark
|
|
src/ftxui/dom/benchmark_test.cpp
|
|
)
|
|
target_link_libraries(ftxui_benchmark
|
|
PRIVATE dom
|
|
PRIVATE benchmark::benchmark
|
|
PRIVATE benchmark::benchmark_main
|
|
)
|
|
target_include_directories(ftxui_benchmark
|
|
PRIVATE src
|
|
)
|
|
endif()
|