Debian Codegraph @

utils/CMakeLists.txt

raw ◀ ▶
Source reconstructed at patch state 0 of 2 — not the installed (fully patched) source.
2 Debian patches touch this file
1 # cmake rules for eurephia - utilities
2 #
3 # GPLv2 only - Copyright (C) 2008 - 2012
4 # David Sommerseth <[email protected]>
5 #
6 # This program is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU General Public License
8 # as published by the Free Software Foundation; version 2
9 # of the License.
10 #
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 #
20 PROJECT(eurephia_utils C)
21 cmake_minimum_required(VERSION 2.6)
22
23 #
24 # Only build these tools if the eurephiadm utility will be built
25 #
26 IF(EUREPHIADM)
27 # Compiler settings
28 INCLUDE_DIRECTORIES(../common ../database ../eurephiadm)
29
30 # Add the needed eurephia defines
31 ADD_DEFINITIONS(-DPLUGINDIR="${PLUGINDIR}")
32 IF(FW_IPTABLES)
33 ADD_DEFINITIONS(-DFW_IPTABLES)
34 ENDIF(FW_IPTABLES)
35
36 # Define the eurephia_init build
37 ADD_EXECUTABLE(eurephia_init
38 eurephia_init.c
39 benchmark.c
40 ../eurephiadm/get_console_input.c
41 ../eurephiadm/argparser.c
42 ../eurephiadm/client_context.c
43 ../eurephiadm/client_config.c
44 )
45 TARGET_LINK_LIBRARIES(eurephia_init crypto common ${EXTRA_LIBS})
46
47 # Define the saltdecode build
48 ADD_EXECUTABLE(eurephia_saltdecode
49 eurephia_saltdecode.c
50 ../eurephiadm/get_console_input.c)
51 ENDIF(EUREPHIADM)