BS_Praktikum4/CMakeLists.txt

29 lines
789 B
CMake

cmake_minimum_required(VERSION 3.10)
project(BS_Praktikum4 VERSION 0.1.0 LANGUAGES CXX)
# Compiler-Optionen
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
# Warnungen und Debug-Informationen bei Entwicklung aktivieren
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wpedantic -g")
endif()
# Aktuelles Verzeichnis als Include-Pfad hinzufügen
include_directories(.)
# Quellen sammeln
file(GLOB SOURCES *.cpp)
file(GLOB HEADERS *.h *.hpp)
# Ausführbare Datei erstellen
add_executable(${PROJECT_NAME} ${SOURCES}
ring_buffer.h
analysis_model.h
sensor_network.cpp
sensor_network.h)
# Installation konfigurieren
install(TARGETS ${PROJECT_NAME} DESTINATION bin)