From 4542e6b11ef90d5faf5e1bd5e5942849cacaa649 Mon Sep 17 00:00:00 2001 From: glenux Date: Sun, 24 Dec 2023 20:27:59 +0100 Subject: [PATCH] feat: add basic CMakeLists.txt --- CMakeLists.txt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..95e4b3b --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,17 @@ +cmake_minimum_required(VERSION 3.10) + +# Set the project name and version +project(IGMPPacketGenerator VERSION 1.0) + +# Specify the C standard +set(CMAKE_C_STANDARD 11) +set(CMAKE_C_STANDARD_REQUIRED True) + +# Find the libnet library +find_package(Libnet REQUIRED) + +# Add the executable +add_executable(igmp_packet_generator src/igmpgen.c) + +# Link the executable to the libnet library +target_link_libraries(igmp_packet_generator Libnet::Libnet)