summaryrefslogtreecommitdiff
path: root/platform/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'platform/CMakeLists.txt')
-rw-r--r--platform/CMakeLists.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/platform/CMakeLists.txt b/platform/CMakeLists.txt
new file mode 100644
index 0000000..6037773
--- /dev/null
+++ b/platform/CMakeLists.txt
@@ -0,0 +1,10 @@
+find_package(NFNETLINK REQUIRED)
+
+add_executable(packetadapter src/inject_pkt.c src/system.c src/packet_adapter.c)
+
+target_include_directories(packetadapter PUBLIC ${CMAKE_CURRENT_LIST_DIR}/include/)
+
+target_link_libraries(packetadapter common)
+target_link_libraries(packetadapter netfilter_queue)
+
+install(TARGETS packetadapter RUNTIME DESTINATION bin COMPONENT Program) \ No newline at end of file