feat: 性能基准测试套件 — M3 里程碑起步
This commit is contained in:
@@ -5,6 +5,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||
|
||||
option(BUILD_TESTS "Build tests" ON)
|
||||
option(BUILD_BENCHMARKS "Build benchmarks" OFF)
|
||||
option(BUILD_EXAMPLES "Build examples" ON)
|
||||
option(ENABLE_SANITIZERS "Enable ASan" OFF)
|
||||
option(VDE_USE_GMP "GMP exact arithmetic" OFF)
|
||||
@@ -23,6 +24,10 @@ endif()
|
||||
|
||||
add_subdirectory(src)
|
||||
|
||||
if(BUILD_BENCHMARKS)
|
||||
add_subdirectory(bench)
|
||||
endif()
|
||||
|
||||
if(BUILD_TESTS)
|
||||
enable_testing()
|
||||
find_package(GTest QUIET)
|
||||
|
||||
Reference in New Issue
Block a user