feat: add basic CMakeLists.txt
This commit is contained in:
parent
b95493c07d
commit
ee8c6c1747
1 changed files with 17 additions and 0 deletions
17
CMakeLists.txt
Normal file
17
CMakeLists.txt
Normal file
|
@ -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)
|
Loading…
Add table
Reference in a new issue