aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2026-04-08 14:41:33 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2026-04-08 14:41:33 +0200
commit1a7efd92e7caee5dc6493190ba0915dfd88fa7bb (patch)
tree547b7604889dc8865e4daac1fcb6474fc624f1fc /CMakeLists.txt
parentbde04c0f3399d40f8e0499328f61613d36deced6 (diff)
Benchmark framework
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2b6c97a..9944497 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,6 +4,8 @@ set(CMAKE_C_STANDARD 23)
file(GLOB_RECURSE SOURCES "src/**/*.c")
list(FILTER SOURCES EXCLUDE REGEX ".*/test_.*\\.c$")
+list(FILTER SOURCES EXCLUDE REGEX ".*/bench_.*\\.c$")
+
add_compile_options(-Wall -pedantic -Wextra -mavx2 -mno-avx512f)
@@ -14,3 +16,7 @@ target_compile_options(main PRIVATE)
add_executable(test test.c ${SOURCES})
target_link_libraries(test m)
target_compile_options(test PRIVATE)
+
+add_executable(bench bench.c ${SOURCES})
+target_link_libraries(bench m)
+target_compile_options(bench PRIVATE)