diff --git a/CMakeLists.txt b/CMakeLists.txt index c613f69..e0b73e1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ -cmake_minimum_required(VERSION 3.16) +cmake_minimum_required(VERSION 3.29) project(gns3_wol_emulator) -set(CMAKE_CXX_STANDARD 20) +set(CMAKE_CXX_STANDARD 23) # Dependencies add_subdirectory(external/json) diff --git a/README.md b/README.md index 75e261a..d5d5545 100644 --- a/README.md +++ b/README.md @@ -8,30 +8,12 @@ If found, it will wake up the destination machine based on its MAC address. ## Dependencies Debian : -```bash -# Build dependencies -sudo apt install build-essential ninja-build cmake -# Application dependencies -sudo apt install libpcap-dev ``` - -## Downloads - -```bash -git clone --recurse-submodules https://git.isriupjv.fr/ISRI/gns3-wol-emulator +sudo apt install libpcap-dev ``` ## Build -```bash -cmake -S ./ -B ./build/ -G "Ninja" -cd ./build/ -ninja ``` - -## Run - -```bash -# Root required for sniffing the network -sudo ./gns3_wol_emulator +cmake ... ``` \ No newline at end of file diff --git a/source/main.cpp b/source/main.cpp index 600b5d9..b0f4002 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -57,7 +57,7 @@ void packet_wol_handler( return; } - std::cerr << "Found no matching node." << std::endl; + std::cerr << "Found no matching node." << std::endl } int main() {