mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 13:39:02 +00:00
Add benchmark target to CMake
This adds a benchmark target to CMake to run the new benchmarks. example: ninja benchmark
This commit is contained in:
parent
2d4872ba60
commit
c39950e49a
2 changed files with 8 additions and 0 deletions
|
@ -168,6 +168,9 @@ ADD_EXECUTABLE(fish_test_helper src/fish_test_helper.cpp)
|
|||
# Set up tests.
|
||||
INCLUDE(cmake/Tests.cmake)
|
||||
|
||||
# Benchmarking support.
|
||||
INCLUDE(cmake/Benchmark.cmake)
|
||||
|
||||
# Set up install.
|
||||
INCLUDE(cmake/Install.cmake)
|
||||
|
||||
|
|
5
cmake/Benchmark.cmake
Normal file
5
cmake/Benchmark.cmake
Normal file
|
@ -0,0 +1,5 @@
|
|||
# Support for benchmarking fish.
|
||||
|
||||
ADD_CUSTOM_TARGET(benchmark
|
||||
COMMAND ${CMAKE_SOURCE_DIR}/benchmarks/driver.sh $<TARGET_FILE:fish>
|
||||
)
|
Loading…
Reference in a new issue