From a10d28667d734dfc27b0eaac5444ff944d046b94 Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Sat, 4 Dec 2021 18:39:11 -0800 Subject: Initial commit. --- CMakeLists.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 CMakeLists.txt (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..b9102d0 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,23 @@ +cmake_minimum_required(VERSION 3.16) + +project(math) + +# Library. + +add_library(math INTERFACE) + +target_include_directories(math INTERFACE + include) + +target_link_libraries(math INTERFACE + -lm) + +# Test. + +add_executable(math_test + test/mat4_test.c) + +target_link_libraries(math_test + math) + +target_compile_options(math_test PRIVATE -DUNIT_TEST -DNDEBUG -Wall -Wextra) -- cgit v1.2.3