summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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})