Add code to cmake

This commit is contained in:
b1ek 2023-04-06 14:15:45 +10:00
parent ab1934a1d9
commit b172250562
Signed by: blek
GPG Key ID: 14546221E3595D0C
2 changed files with 3 additions and 7 deletions

View File

@ -12,12 +12,8 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Widgets) find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Widgets)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets) find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets)
set(PROJECT_SOURCES file(GLOB_RECURSE PROJECT_SOURCES "src/*.cpp" "src/*.cxx" "src/*.h" "src/*.hpp")
main.cpp list(APPEND PROJECT_SOURCES "main.cpp")
mainwindow.cpp
mainwindow.h
mainwindow.ui
)
if(${QT_VERSION_MAJOR} GREATER_EQUAL 6) if(${QT_VERSION_MAJOR} GREATER_EQUAL 6)
qt_add_executable(CuteSchedule qt_add_executable(CuteSchedule

View File

@ -1,4 +1,4 @@
#include "mainwindow.h" #include "src/mainwindow.h"
#include <QApplication> #include <QApplication>