feat: add day7

This commit is contained in:
Alessio Molinari
2025-12-08 00:37:45 +01:00
parent 63c019f340
commit ff17ec32a6
6 changed files with 284 additions and 0 deletions

29
day7/CMakeLists.txt Normal file
View File

@@ -0,0 +1,29 @@
cmake_minimum_required(VERSION 3.10)
# Project name and version
project(Day7 VERSION 1.0)
# Set default build type
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Debug)
endif()
# 1. This is the critical line for Clangd.
# It generates the file clangd reads to know where headers are.
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# Debug and Release flags
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g -O0 -Wall -Wextra")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3")
# Specify C standard
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# Add include directory
include_directories(${PROJECT_SOURCE_DIR}/include)
# Add executable
add_executable(${PROJECT_NAME}
src/main.cpp
)