From 54dd23b29971cbcf5c78d2df93da02f4a501345d Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Wed, 2 Sep 2009 11:47:51 +0200 Subject: Cleaned up the efw-iptables CMake rules --- plugin/firewall/iptables/CMakeLists.txt | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'plugin') diff --git a/plugin/firewall/iptables/CMakeLists.txt b/plugin/firewall/iptables/CMakeLists.txt index 789a237..40667fa 100644 --- a/plugin/firewall/iptables/CMakeLists.txt +++ b/plugin/firewall/iptables/CMakeLists.txt @@ -1,12 +1,20 @@ PROJECT(efw-iptables C) cmake_minimum_required(VERSION 2.6) -SET(efw_ipt_SRC + +# Compiler settings +INCLUDE_DIRECTORIES(BEFORE ../..) + +# Build rules for efw-iptables.so +ADD_LIBRARY(efw-iptables MODULE efw-iptables.c ../eurephiafw_helpers.c ) -INCLUDE_DIRECTORIES(BEFORE ../..) -ADD_LIBRARY(efw-iptables MODULE ${efw_ipt_SRC}) +# Link in pthread, rt, gcc_s and our common library (libeurephiacommon.a) TARGET_LINK_LIBRARIES(efw-iptables pthread rt gcc_s common) + +# Define output to be efw-iptables.so SET_TARGET_PROPERTIES(efw-iptables PROPERTIES PREFIX "") + +# Install rules INSTALL(TARGETS efw-iptables LIBRARY DESTINATION ${PLUGINDIR}) -- cgit