1 PROJECT(netsniff-ng-toolkit 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)
11 INCLUDE(CheckBPFAttach)
12 INCLUDE(CheckPFPacket)
13 INCLUDE(CheckStrictAlign)
30 -Werror-implicit-function-declaration
38 -Wmissing-parameter-type
42 -Wmissing-include-dirs
44 -Wmissing-field-initializers
45 -Wmissing-declarations
52 -Wdisabled-optimization
56 -Wunsafe-loop-optimizations
62 IF (CMAKE_BUILD_TYPE STREQUAL profile)
63 ADD_DEFINITIONS(-g -pg)
64 ENDIF (CMAKE_BUILD_TYPE STREQUAL profile)
70 INCLUDE_DIRECTORIES(.)
72 ADD_SUBDIRECTORY(netsniff-ng)
73 ADD_SUBDIRECTORY(ifpps)
74 ADD_SUBDIRECTORY(trafgen)
75 ADD_SUBDIRECTORY(bpfc)
76 ADD_SUBDIRECTORY(ashunt)
77 ADD_SUBDIRECTORY(curvetun)
78 ADD_SUBDIRECTORY(flowtop)