From cc96d69ed11c60a782cd8b993d4bdf2ce8c99560 Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Sat, 4 Dec 2021 18:31:18 -0800 Subject: Add timer library. --- timer/CMakeLists.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 timer/CMakeLists.txt (limited to 'timer/CMakeLists.txt') diff --git a/timer/CMakeLists.txt b/timer/CMakeLists.txt new file mode 100644 index 0000000..d915163 --- /dev/null +++ b/timer/CMakeLists.txt @@ -0,0 +1,23 @@ +cmake_minimum_required(VERSION 3.10) + +project(timer) + +# Library + +set(SRC + src/timer.c) + +add_library(timer ${SRC}) + +target_include_directories(timer PUBLIC include) + +target_compile_options(timer PRIVATE -Wall -Wextra) + +# Test + +add_executable(timer_test + test/timer_test.c) + +target_link_libraries(timer_test timer) + +target_compile_options(timer_test PRIVATE -DUNIT_TEST -DNDEBUG -Wall -Wextra) -- cgit v1.2.3