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

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})