diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-04-08 13:14:27 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-04-08 13:15:01 +0200 |
| commit | cf534d762754860ed5b714974f99acd282d48b3b (patch) | |
| tree | bf22341cedfb50ee7bcd4e15f85add2329783f31 /CMakeLists.txt | |
| parent | 630fcb1846aed16b9ab62bcf700f668883f4521f (diff) | |
Restructure into src/{std,json}/
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 6 |
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) |
