-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
33 lines (29 loc) · 903 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
cmake_minimum_required(VERSION 3.5)
project(libgcds)
set(CMAKE_C_STANDARD 11)
set(GCC_COVERAGE_COMPILE_FLAGS "-g -Wall -Wextra -Wpedantic -Wconversion")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${GCC_COVERAGE_COMPILE_FLAGS}")
include_directories(
include
include/CircularLinkedList
include/LinkedList
include/Queue
include/Stack
include/Vector
)
add_library(gcds STATIC
src/node.c
src/CircularLinkedList/circular_linked_list.c
src/LinkedList/linked_list.c
src/Queue/queue.c
src/Stack/stack.c
src/Vector/vector.c)
install(TARGETS gcds DESTINATION lib)
install(FILES
include/node.h
include/CircularLinkedList/circular_linked_list.h
include/LinkedList/linked_list.h
include/Queue/queue.h
include/Stack/stack.h
include/Vector/vector.h
DESTINATION include)