aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 06cbb74..2b6c97a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2,8 +2,8 @@ cmake_minimum_required(VERSION 3.30.5)
project(kagamic VERSION 0.1 LANGUAGES C)
set(CMAKE_C_STANDARD 23)
-file(GLOB SOURCES "src/*.c")
-file(GLOB TEST_SOURCES "test/*.c")
+file(GLOB_RECURSE SOURCES "src/**/*.c")
+list(FILTER SOURCES EXCLUDE REGEX ".*/test_.*\\.c$")
add_compile_options(-Wall -pedantic -Wextra -mavx2 -mno-avx512f)
@@ -11,6 +11,6 @@ add_executable(main main.c ${SOURCES})
target_link_libraries(main m)
target_compile_options(main PRIVATE)
-add_executable(test test.c ${SOURCES} ${TEST_SOURCES})
+add_executable(test test.c ${SOURCES})
target_link_libraries(test m)
target_compile_options(test PRIVATE)