From 8eec887bad2b821079e15d653fbbe6d6ccaceaf2 Mon Sep 17 00:00:00 2001 From: kutayboz Date: Fri, 2 Jun 2023 02:45:07 +0300 Subject: Added cmake config. Code refactoring. --- CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 CMakeLists.txt (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..a9a7334 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,11 @@ +cmake_minimum_required(VERSION 3.0.0) +set(CMAKE_C_STANDARD 90) +set(CMAKE_C_STANDARD_REQUIRED True) + +project(network_monitor VERSION 0.1.0) +set(CMAKE_CXX_FLAGS "-Wall -Wextra -Werror -pedantic-errors") +set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS} -g -O0") +set(CMAKE_C_FLAGS_RELEASE "${CMAKE_CXX_FLAGS} -O2") +add_executable(network_monitor ./src/main.c) + +install(TARGETS network_monitor DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/bin/) -- cgit v1.3