C math library.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

23 lines
365 B

cmake_minimum_required(VERSION 3.0)
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)