summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorcrondog <patches@crondog.com>2020-01-08 21:22:56 +1100
committercrondog <patches@crondog.com>2020-01-08 21:43:35 +1100
commitc6c607ee7e2f77f5efaad672c9d1e6c73843cd14 (patch)
tree19a823ac7e8c60265a236603ce39445d0ea0e07f /CMakeLists.txt
parentbab5626e57a8b07b6778cd6d41ff29155fefb2af (diff)
downloadninja-c6c607ee7e2f77f5efaad672c9d1e6c73843cd14.tar.gz
Build performance tests with CMake. Fixes #1708
They are only built and not run with CTest
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index de0fe1a..e9f6563 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -111,5 +111,17 @@ if(WIN32)
endif()
target_link_libraries(ninja_test PRIVATE libninja libninja-re2c)
+foreach(perftest
+ build_log_perftest
+ canon_perftest
+ clparser_perftest
+ depfile_parser_perftest
+ hash_collision_bench
+ manifest_parser_perftest
+)
+ add_executable(${perftest} src/${perftest}.cc)
+ target_link_libraries(${perftest} PRIVATE libninja libninja-re2c)
+endforeach()
+
enable_testing()
add_test(NinjaTest ninja_test)