1 #Project name is not mandatory, but you should use it
2 PROJECT(netsniff-ng-toolkit C)
4 # States that CMake required version must be >= 2.6
5 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
7 SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules)
8 # Activate this when you want to build a shared lib out the the lib/ directory
9 # Bear in mind that no profiling will be available on 64-bit arch when on
10 # SET(BUILD_SHARED_LIBS ON)
12 FIND_PACKAGE(Curses REQUIRED)
13 FIND_PACKAGE(Threads REQUIRED)
15 IF (NOT CMAKE_HAVE_PTHREAD_CREATE)
16 MESSAGE(FATAL_ERROR "The framework only supports pthread")
17 ENDIF(NOT CMAKE_HAVE_PTHREAD_CREATE)
23 INCLUDE(CheckPFPacket)
24 INCLUDE(CheckStrictAlign)
36 -Werror-implicit-function-declaration
47 IF (CMAKE_BUILD_TYPE STREQUAL profile)
48 ADD_DEFINITIONS(-g -pg)
49 ENDIF (CMAKE_BUILD_TYPE STREQUAL profile)