diff options
author | crondog <patches@crondog.com> | 2020-01-08 10:22:56 (GMT) |
---|---|---|
committer | crondog <patches@crondog.com> | 2020-01-08 10:43:35 (GMT) |
commit | c6c607ee7e2f77f5efaad672c9d1e6c73843cd14 (patch) | |
tree | 19a823ac7e8c60265a236603ce39445d0ea0e07f | |
parent | bab5626e57a8b07b6778cd6d41ff29155fefb2af (diff) | |
download | Ninja-c6c607ee7e2f77f5efaad672c9d1e6c73843cd14.zip Ninja-c6c607ee7e2f77f5efaad672c9d1e6c73843cd14.tar.gz Ninja-c6c607ee7e2f77f5efaad672c9d1e6c73843cd14.tar.bz2 |
Build performance tests with CMake. Fixes #1708
They are only built and not run with CTest
-rw-r--r-- | CMakeLists.txt | 12 |
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) |