diff options
| author | 3gg <3gg@shellblade.net> | 2026-04-05 14:48:01 -0700 |
|---|---|---|
| committer | 3gg <3gg@shellblade.net> | 2026-04-05 14:48:01 -0700 |
| commit | 5458f3db7b08bf06c1f5c99a5851f6b270126b92 (patch) | |
| tree | 764eff1369fffdd444e7e3cbd649ea5975065cc8 /simloop/CMakeLists.txt | |
| parent | e97bd18127fe019dd14256d807f9ea5d06cc36b1 (diff) | |
Initial simloop module
Diffstat (limited to 'simloop/CMakeLists.txt')
| -rw-r--r-- | simloop/CMakeLists.txt | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/simloop/CMakeLists.txt b/simloop/CMakeLists.txt new file mode 100644 index 0000000..1997e2f --- /dev/null +++ b/simloop/CMakeLists.txt | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | cmake_minimum_required(VERSION 3.5) | ||
| 2 | |||
| 3 | project(simloop) | ||
| 4 | |||
| 5 | set(CMAKE_C_STANDARD 23) | ||
| 6 | set(CMAKE_C_STANDARD_REQUIRED On) | ||
| 7 | set(CMAKE_C_EXTENSIONS Off) | ||
| 8 | |||
| 9 | add_library(simloop | ||
| 10 | include/simloop.h | ||
| 11 | src/simloop.c) | ||
| 12 | |||
| 13 | target_include_directories(simloop PUBLIC | ||
| 14 | include) | ||
| 15 | |||
| 16 | target_link_libraries(simloop PUBLIC | ||
| 17 | timer) | ||
| 18 | |||
| 19 | target_compile_options(simloop PRIVATE -Wall -Wextra -Wpedantic) | ||
| 20 | |||
| 21 | # Test | ||
| 22 | |||
| 23 | add_executable(simloop_test | ||
| 24 | test/simloop_test.c) | ||
| 25 | |||
| 26 | target_link_libraries(simloop_test | ||
| 27 | simloop | ||
| 28 | test) | ||
| 29 | |||
| 30 | target_compile_options(simloop_test PRIVATE -DUNIT_TEST -DNDEBUG -Wall -Wextra -Wpedantic) | ||
