blob: 7e1df38ab78f5c789875ce3c9f81f9757138714a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
cmake_minimum_required(VERSION 3.5)
project(list)
set(CMAKE_C_STANDARD 23)
set(CMAKE_C_STANDARD_REQUIRED On)
set(CMAKE_C_EXTENSIONS Off)
# Library
add_library(list INTERFACE)
target_include_directories(list INTERFACE
include)
# 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)
|