aboutsummaryrefslogtreecommitdiff
path: root/simloop/CMakeLists.txt
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2026-04-05 14:48:01 -0700
committer3gg <3gg@shellblade.net>2026-04-05 14:48:01 -0700
commit5458f3db7b08bf06c1f5c99a5851f6b270126b92 (patch)
tree764eff1369fffdd444e7e3cbd649ea5975065cc8 /simloop/CMakeLists.txt
parente97bd18127fe019dd14256d807f9ea5d06cc36b1 (diff)
Initial simloop module
Diffstat (limited to 'simloop/CMakeLists.txt')
-rw-r--r--simloop/CMakeLists.txt30
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 @@
1cmake_minimum_required(VERSION 3.5)
2
3project(simloop)
4
5set(CMAKE_C_STANDARD 23)
6set(CMAKE_C_STANDARD_REQUIRED On)
7set(CMAKE_C_EXTENSIONS Off)
8
9add_library(simloop
10 include/simloop.h
11 src/simloop.c)
12
13target_include_directories(simloop PUBLIC
14 include)
15
16target_link_libraries(simloop PUBLIC
17 timer)
18
19target_compile_options(simloop PRIVATE -Wall -Wextra -Wpedantic)
20
21# Test
22
23add_executable(simloop_test
24 test/simloop_test.c)
25
26target_link_libraries(simloop_test
27 simloop
28 test)
29
30target_compile_options(simloop_test PRIVATE -DUNIT_TEST -DNDEBUG -Wall -Wextra -Wpedantic)