mailmap: add mail alias
[transsip.git] / src / CMakeLists.txt
blobc1a1c7d906f3a80fb3565b65d458a8c60bc91a23
1 PROJECT(transsip-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/bin)
7 SET(CONFIG_INSTALL_PATH /etc/trafgen)
9 SET(VERSION "0.5.0")
11 INCLUDE(CheckStrictAlign)
12 INCLUDE(Pod2Man)
14 ADD_DEFINITIONS(
15         -O3
16         -fstack-protector
17         -fpie
18         -std=gnu99
19         -fno-strict-aliasing
20         -D_FORTIFY_SOURCE=2
21         -D_REENTRANT
22         -march=native
23         -mtune=native
24         -Wall
25         -Wundef
26         -Wstrict-prototypes
27         -Werror-implicit-function-declaration
28         -Wformat=2
29         -Wcomments
30         -Wendif-labels
31         -Wuninitialized
32         -Winit-self
33         -Wstrict-overflow=1
34         -Wtype-limits
35         -Wmissing-parameter-type
36         -Wclobbered
37         -Wempty-body
38         -Wignored-qualifiers
39         -Wmissing-include-dirs
40         -Woverlength-strings
41         -Wmissing-field-initializers
42         -Wmissing-declarations
43         -Wmissing-prototypes
44         -Wlogical-op
45         -Woverride-init
46         -Wnested-externs
47         -Wredundant-decls
48         -Winvalid-pch
49         -Wdisabled-optimization
50         -Wstack-protector
51         -Waggregate-return
52         -Wcast-align
53         -Wunsafe-loop-optimizations
54         -Wfloat-equal
55         -Wunknown-pragmas
56         -Wunused-function
59 IF (CMAKE_BUILD_TYPE STREQUAL profile)
60         ADD_DEFINITIONS(-g -pg)
61 ENDIF (CMAKE_BUILD_TYPE STREQUAL profile)
63 ENABLE_TESTING()
65 ADD_MANPAGE_TARGET()
67 INCLUDE_DIRECTORIES(.)
69 ADD_SUBDIRECTORY(transsip)
70 ADD_SUBDIRECTORY(test)