mal wieder rein kommen

This commit is contained in:
Cedric
2025-09-19 01:50:56 +02:00
parent 37b66c1d80
commit a79212b525
6 changed files with 74 additions and 0 deletions

9
.gitignore vendored Normal file
View File

@@ -0,0 +1,9 @@
# Mac specific
**/.DS_Store
# IDE specific
.vscode/
.idea/
# Build files
build/*
*.zip

35
CMakeLists.txt Normal file
View File

@@ -0,0 +1,35 @@
#----------------------------------------------#
#-----Konfiguration des Buildsystems CMake-----#
#----------------------------------------------#
# Minimale Version des Buildsystems
cmake_minimum_required(VERSION 3.16)
# Name des Projekts
project(LrcLibSync)
#----------------------------------------------#
#-------------------Optionen-------------------#
#----------------------------------------------#
# Setzte verwendeten C++-Standard auf C++17
set(CMAKE_CXX_STANDARD 17)
# Optional: Baue mit Debugsymbolen / Optimierung
set(CMAKE_BUILD_TYPE Debug)
#set(CMAKE_BUILD_TYPE Release)
add_compile_options(-fsanitize=address)
add_link_options(-fsanitize=address)
# Füge Includeverzeichnisse hinzu
include_directories(include)
# Legt die Variable SRC_FILES an, die alle
# .cpp-Dateien des Projekts benennt,
# die in Verzeichnis src/ liegen.
file(GLOB SRC_FILES
${PROJECT_SOURCE_DIR}/src/*.cpp)
# Use CMakes FetchContent
# Workaround for CMake >= 3.24
# Avoid warning about DOWNLOAD_EXTRACT_TIMESTAMP
if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.24.0")
cmake_policy(SET CMP0135 NEW)
endif()
add_executable(erstertest src/main.cpp ${SRC_FILES})

6
help.md Normal file
View File

@@ -0,0 +1,6 @@
in the main directory run
# cmake -S . -B build
once.
After that run
# cmake --build build
each time something changes.

7
include/cube.hpp Normal file
View File

@@ -0,0 +1,7 @@
class cube
{
public:
int linkeecke;
int rechteecke;
cube();
};

7
src/cube.cpp Normal file
View File

@@ -0,0 +1,7 @@
#include "../include/cube.hpp"
cube::cube()
{
linkeecke = 12;
rechteecke = 33;
}

10
src/main.cpp Normal file
View File

@@ -0,0 +1,10 @@
#include <iostream>
#include "../include/cube.hpp"
int main()
{
std::cout << "so und nicht anders" << std::endl;
cube erstercube;
std::cout << erstercube.linkeecke << std::endl;
return 0;
}