diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..b7a6fe0 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,40 @@ +cmake_minimum_required(VERSION 3.1.0) + +project(Rennbahn) + +# Find includes in corresponding build directories +set(CMAKE_INCLUDE_CURRENT_DIR ON) +# Instruct CMake to run moc automatically when needed +set(CMAKE_AUTOMOC ON) +# Create code from a list of Qt designer ui files +set(CMAKE_AUTOUIC ON) + +# Find the QtWidgets library +find_package(Qt5Widgets CONFIG REQUIRED) + +find_package(Qt5Sql REQUIRED) + +# Populate a CMake variable with the sources +set(helloworld_SRCS + main.cpp + mainwindow.cpp + windowrace.cpp + hardwaresetup.cpp + windowssettings.cpp + counter.cpp + countdown.cpp + ampel.cpp + database.cpp + windowrennliste.cpp + training.cpp + + mainwindow.ui + windowrace.ui + windowssettings.ui + windowrennliste.ui + training.ui +) +# Tell CMake to create the helloworld executable +add_executable(Rennbahn ${helloworld_SRCS}) +# Use the Widgets module from Qt 5 +target_link_libraries(Rennbahn Qt5::Widgets Qt5::Core Qt5::Sql)