mal wieder rein kommen
This commit is contained in:
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})
|
||||
Reference in New Issue
Block a user