cmake: remove copy of nonexistant file
[netsniff-ng.git] / src / CMakeLists.txt
blob51f6cbcc36d995ebea5c6e8366f006d1647e7577
1 project(netsniff-ng-suite C)
3 cmake_minimum_required(VERSION 2.6)
5 set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules)
6 set(EXECUTABLE_INSTALL_PATH /usr/sbin)
7 set(CONFIG_INSTALL_PATH /etc/netsniff-ng)
8 set(DOC_INSTALL_PATH share/doc/netsniff-ng)
10 set(VERSION "0.5.8")
12 include(CheckBPFAttach)
13 include(CheckPFPacket)
14 include(CheckStrictAlign)
15 include(CheckTxRing)
16 include(CheckHwTimestamp)
17 include(CheckGeoIpv6)
19 include(Pod2Man)
21 add_definitions(
22   -O3
23   -fstack-protector
24   --param=ssp-buffer-size=4
25   -fpie
26   -std=gnu99
27   -fno-strict-aliasing
28   -fexceptions
29   -fasynchronous-unwind-tables
30   -fno-delete-null-pointer-checks
31   -D_FORTIFY_SOURCE=2
32   -D_REENTRANT
33   -march=native
34   -mtune=native
35   -Wall
36   -Wmissing-prototypes
37 #  -Wstrict-prototypes
38   -Wdeclaration-after-statement
39   -Werror-implicit-function-declaration
40   -Wundef
41   -Wformat=2
42 #  -Wframe-larger-than=2048
45 if(CMAKE_BUILD_TYPE STREQUAL pedantic)
46   add_definitions(
47     -Wextra
48     -Werror
49   )
50 endif(CMAKE_BUILD_TYPE STREQUAL pedantic)
52 if(CMAKE_BUILD_TYPE STREQUAL profile)
53   add_definitions(
54     -g
55     -pg
56     -gnato
57     -fmudflap
58     -fstack-check
59   )
60 endif(CMAKE_BUILD_TYPE STREQUAL profile)
62 enable_testing()
64 add_manpage_target()
66 include_directories(.)
68 add_subdirectory(netsniff-ng)
69 add_subdirectory(trafgen)
70 add_subdirectory(mausezahn)
71 add_subdirectory(bpfc)
72 add_subdirectory(ifpps)
73 add_subdirectory(flowtop)
74 add_subdirectory(astraceroute)
75 add_subdirectory(curvetun)
77 install(
78   FILES ../Documentation/RelNotes/Notes-0.5.6
79         ../Documentation/RelNotes/Notes-0.5.7
80   DESTINATION ${DOC_INSTALL_PATH}
83 install(
84   FILES ../Documentation/IPv6Notes
85         ../Documentation/KnownIssues
86         ../Documentation/Performance
87         ../Documentation/RelatedWork
88         ../Documentation/Sponsors
89         ../Documentation/Summary
90         ../Documentation/SubmittingPatches
91         ../Documentation/CodingStyle
92         ../Documentation/Maintainer
93         ../Documentation/VendorWishlist
94         ../Documentation/Mirrors
95         ../Documentation/BigPicture.pdf
96         ../Documentation/logo.png
97   DESTINATION ${DOC_INSTALL_PATH}