cmake: build executables by driving cargo directly

Drops the requirement for Corrosion, as almost none of its extensive features
are required.
This commit is contained in:
David Adam
2024-01-25 19:58:50 +08:00
parent 7d33f6706f
commit cb46396b67
5 changed files with 69 additions and 47 deletions

View File

@@ -1,6 +1,7 @@
# Support for benchmarking fish.
add_custom_target(benchmark
COMMAND ${CMAKE_SOURCE_DIR}/benchmarks/driver.sh $<TARGET_FILE:fish>
COMMAND ${CMAKE_SOURCE_DIR}/benchmarks/driver.sh ${CMAKE_BINARY_DIR}/fish
DEPENDS fish
USES_TERMINAL
)