Proper initial commit

This commit is contained in:
theskywinds 2025-05-26 11:40:01 +02:00
parent 9906d709c5
commit ed35883e2e
2 changed files with 30 additions and 0 deletions

25
CMakeLists.txt Normal file
View File

@ -0,0 +1,25 @@
cmake_minimum_required(VERSION 3.31)
project(atm_admin_program)
set(CMAKE_CXX_STANDARD 20)
add_executable(atm_admin_program
src/main.cpp)
target_compile_options(${PROJECT_NAME} PRIVATE
# Make all warnings into errors
-Werror
# Basic warning flags
-Wall # Enable all common warnings
-Wextra # Enable extra warnings not covered by -Wall
-Wpedantic # Issue warnings demanded by strict ISO C and ISO C++
-pedantic-errors # Like -Wpedantic but errors instead of warnings
# Specific warning categories
-Wshadow # Warn when a variable declaration shadows another
-Wcast-align # Warn for potential performance problems from memory alignment
-Wconversion # Warn on type conversions that may lose data
-Wsign-conversion # Warn on sign conversions
-Wnull-dereference # Warn about null pointer dereference
)

5
src/main.cpp Normal file
View File

@ -0,0 +1,5 @@
#include <iostream>
int main() {
std::cout << "Hello, world!";
}