mal wieder rein kommen
This commit is contained in:
9
.gitignore
vendored
Normal file
9
.gitignore
vendored
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# Mac specific
|
||||||
|
**/.DS_Store
|
||||||
|
# IDE specific
|
||||||
|
.vscode/
|
||||||
|
.idea/
|
||||||
|
# Build files
|
||||||
|
build/*
|
||||||
|
|
||||||
|
*.zip
|
||||||
35
CMakeLists.txt
Normal file
35
CMakeLists.txt
Normal 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
6
help.md
Normal 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
7
include/cube.hpp
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
class cube
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
int linkeecke;
|
||||||
|
int rechteecke;
|
||||||
|
cube();
|
||||||
|
};
|
||||||
7
src/cube.cpp
Normal file
7
src/cube.cpp
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
#include "../include/cube.hpp"
|
||||||
|
|
||||||
|
cube::cube()
|
||||||
|
{
|
||||||
|
linkeecke = 12;
|
||||||
|
rechteecke = 33;
|
||||||
|
}
|
||||||
10
src/main.cpp
Normal file
10
src/main.cpp
Normal 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;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user