diff options
author | paradust7 <102263465+paradust7@users.noreply.github.com> | 2022-05-06 13:17:16 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-06 21:17:16 +0100 |
commit | 87472150bcb83e9cbad2f567ac536de0456ceb70 (patch) | |
tree | 027a80a417245989764c45d6923e9c81c7785805 /CMakeLists.txt | |
parent | 45d318a77300b014b13366ee9fa4cfc69e08f360 (diff) | |
download | minetest-87472150bcb83e9cbad2f567ac536de0456ceb70.tar.gz minetest-87472150bcb83e9cbad2f567ac536de0456ceb70.tar.bz2 minetest-87472150bcb83e9cbad2f567ac536de0456ceb70.zip |
Add benchmarks for json string serialize/deserialize (#12258)
Co-authored-by: sfan5 <sfan5@live.de>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 5dfc857d3..d8dd85af6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -52,6 +52,7 @@ set(RUN_IN_PLACE ${DEFAULT_RUN_IN_PLACE} CACHE BOOL set(BUILD_CLIENT TRUE CACHE BOOL "Build client") set(BUILD_SERVER FALSE CACHE BOOL "Build server") set(BUILD_UNITTESTS TRUE CACHE BOOL "Build unittests") +set(BUILD_BENCHMARKS FALSE CACHE BOOL "Build benchmarks") set(WARN_ALL TRUE CACHE BOOL "Enable -Wall for Release build") @@ -280,6 +281,10 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "(Apple)?Clang") endif() endif() +if(BUILD_BENCHMARKS) + add_subdirectory(lib/catch2) +endif() + # Subdirectories # Be sure to add all relevant definitions above this add_subdirectory(src) |