diff --git a/CMakeLists.txt b/CMakeLists.txt index 335f1e9..7ba6a77 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,6 +33,7 @@ option(SAVE_ALLOCATE_SIZE "Use more memory to save allocate size" OFF) option(ENABLE_FUSE_APPLICATION "" ON) option(WITH_TESTS "Enable the build of tests" OFF) +option(WITH_BENCHMARKS "Enable the build of benchmarks" OFF) if (DEFINED SANITIZER AND SANITIZER) set(OVERRIDE_CXX_NEW_DELETE OFF) @@ -208,4 +209,6 @@ add_subdirectory(src) if(WITH_TESTS) add_subdirectory(tests) endif() -add_subdirectory(benchmarks) +if(WITH_BENCHMARKS) + add_subdirectory(benchmarks) +endif()