aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-01-03 03:21:50 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-01-03 03:21:50 +0300
commit0df5875a0ea49c4e7e05274d180b07f5cb56743d (patch)
treedbc2da0da3a42c5253aa62aec61aaa1c18ec0483 /CMakeLists.txt
parentadd Google's benchmark library as a submodule (diff)
downloadmath-server-0df5875a0ea49c4e7e05274d180b07f5cb56743d.tar.gz
math-server-0df5875a0ea49c4e7e05274d180b07f5cb56743d.zip
add a basic benchmark for lexer
I suspect std::regex is _horribly_ slow. Will compare it to boost::regex, then decide.
Diffstat (limited to '')
-rw-r--r--CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 19b6164..65b8732 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -31,6 +31,9 @@ add_subdirectory(client)
add_subdirectory(server)
if(ENABLE_TESTS)
+ set(BENCHMARK_ENABLE_TESTING OFF CACHE BOOL "Suppressing benchmark's tests" FORCE)
+ add_subdirectory("3rdparty/google/benchmark")
+
add_subdirectory(test)
endif()