diff options
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) | ||
