-
Notifications
You must be signed in to change notification settings - Fork 19
/
CMakeLists.txt
84 lines (71 loc) · 2.28 KB
/
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
cmake_minimum_required (VERSION 2.6)
project (light_pcapng C)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -I${CMAKE_CURRENT_SOURCE_DIR}/include/ -Wall -O2 -fPIC -DUNIVERSAL -g")
add_library (light_pcapng SHARED
src/light_io.c
src/light_pcapng.c
src/light_pcapng_cont.c
src/light_platform.c
src/light_manipulate.c
src/light_internal.c
src/light_alloc.c
src/light_advanced.c
src/light_option.c
src/light_pcapng_ext.c
)
add_library (light_pcapng_static STATIC
src/light_io.c
src/light_pcapng.c
src/light_pcapng_cont.c
src/light_platform.c
src/light_manipulate.c
src/light_internal.c
src/light_alloc.c
src/light_advanced.c
src/light_option.c
src/light_pcapng_ext.c
)
add_executable (test_read.test
src/tests/test_read.c
)
target_link_libraries(test_read.test light_pcapng_static)
add_executable (test_read_write.test
src/tests/test_read_write.c
)
target_link_libraries(test_read_write.test light_pcapng_static)
add_executable (test_mem.test
src/tests/test_mem.c
)
target_link_libraries(test_mem.test light_pcapng_static)
add_executable (test_histogram.test
src/tests/test_histogram.c
)
target_link_libraries(test_histogram.test light_pcapng_static)
add_executable (test_subcapture.test
src/tests/test_subcapture.c
)
target_link_libraries(test_subcapture.test light_pcapng_static)
add_executable (test_feature.test
src/tests/test_feature.c
)
target_link_libraries(test_feature.test light_pcapng_static)
add_executable (test_flow.test
src/tests/test_flow.c
)
target_link_libraries(test_flow.test light_pcapng_static)
add_executable (test_feature_advanced.test
src/tests/test_feature_advanced.c
)
target_link_libraries(test_feature_advanced.test light_pcapng_static dl)
add_executable (test_read_packets.test
src/tests/test_read_packets.c
)
target_link_libraries(test_read_packets.test light_pcapng_static)
add_executable (test_read_write_packets.test
src/tests/test_read_write_packets.c
)
target_link_libraries(test_read_write_packets.test light_pcapng_static)
add_executable (test_split.test
src/tests/test_split.c
)
target_link_libraries(test_split.test light_pcapng_static)