-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
46 lines (37 loc) · 973 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
34
35
36
37
38
39
40
41
42
43
44
45
46
cmake_minimum_required(VERSION 3.7)
project(bfddp VERSION 0.1.0)
add_library(
libbfddp
libbfddp/bfddp.c
libbfddp/bfddp_extra.c
)
add_library(
vbfd
soft_bfddpd/debug.c
soft_bfddpd/events.c
soft_bfddpd/openbsd-tree.c
soft_bfddpd/packet.c
soft_bfddpd/session.c
)
target_include_directories(vbfd PUBLIC libbfddp)
add_executable(
bfddpd
bfddpd/bfddpd.c
)
target_link_libraries(bfddpd libbfddp)
target_include_directories(bfddpd PUBLIC libbfddp)
# Software based BFD data plane.
add_executable(
soft_bfddpd
soft_bfddpd/bfddpd.c
soft_bfddpd/debug.c
soft_bfddpd/events.c
soft_bfddpd/openbsd-tree.c
soft_bfddpd/packet.c
soft_bfddpd/session.c
)
target_link_libraries(soft_bfddpd libbfddp)
target_include_directories(soft_bfddpd PUBLIC libbfddp)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} \
-Wall -Wextra -Wshadow -Wpointer-arith -Wconversion -Wswitch-enum -Wpacked \
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations")