aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
blob: b9102d0687571612e409647df60d3251c51913c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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)