aboutsummaryrefslogtreecommitdiff
path: root/list/CMakeLists.txt
blob: 8caeabc55ad5e4b744abdd0c00ed7f3093084bf4 (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.0)

project(list)

# Library

add_library(list
  src/list.c)

target_include_directories(list PUBLIC
  include)

target_compile_options(list PRIVATE -Wall -Wextra)

# Test

add_executable(list_test
  test/list_test.c)

target_link_libraries(list_test
  list)

target_compile_options(list_test PRIVATE -DUNIT_TEST -Wall -Wextra)