| 1 |
# cmake rules for eurephia - iptables firewall driver |
| 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(efw-iptables C) |
| •21 |
cmake_minimum_required(VERSION 3.5) |
| 22 |
|
| 23 |
# Compiler settings |
| 24 |
INCLUDE_DIRECTORIES(BEFORE ../..) |
| 25 |
|
| 26 |
# Build rules for efw-iptables.so |
| 27 |
ADD_LIBRARY(efw-iptables MODULE |
| 28 |
efw-iptables.c |
| 29 |
../eurephiafw_helpers.c |
| 30 |
) |
| 31 |
|
| 32 |
# Link in pthread, rt, gcc_s and our common library (libeurephiacommon.a) |
| 33 |
TARGET_LINK_LIBRARIES(efw-iptables pthread rt gcc_s common) |
| 34 |
|
| 35 |
# Define output to be efw-iptables.so |
| 36 |
SET_TARGET_PROPERTIES(efw-iptables PROPERTIES PREFIX "") |
| 37 |
|
| 38 |
# Install rules |
| 39 |
INSTALL(TARGETS efw-iptables LIBRARY DESTINATION ${PLUGINDIR}) |