summaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2009-09-02 11:47:51 +0200
committerDavid Sommerseth <dazo@users.sourceforge.net>2009-09-02 11:47:51 +0200
commit54dd23b29971cbcf5c78d2df93da02f4a501345d (patch)
treebd2a7caf6a17b2c76314937c51b30724e13052b4 /plugin
parent0e36f50f3d943735c04ad3e3c32171c3b4863d7f (diff)
downloadeurephia-54dd23b29971cbcf5c78d2df93da02f4a501345d.tar.gz
eurephia-54dd23b29971cbcf5c78d2df93da02f4a501345d.tar.xz
eurephia-54dd23b29971cbcf5c78d2df93da02f4a501345d.zip
Cleaned up the efw-iptables CMake rules
Diffstat (limited to 'plugin')
-rw-r--r--plugin/firewall/iptables/CMakeLists.txt14
1 files changed, 11 insertions, 3 deletions
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})