Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cmake_minimum_required(VERSION 3.24)
- project(TeamProjectWork VERSION 0.1 LANGUAGES CXX)
- set(CMAKE_INCLUDE_CURRENT_DIR ON)
- set(CMAKE_AUTOUIC ON)
- set(CMAKE_AUTOMOC ON)
- set(CMAKE_AUTORCC ON)
- set(CMAKE_CXX_STANDARD 17)
- set(CMAKE_CXX_STANDARD_REQUIRED ON)
- find_package(QT NAMES Qt5 COMPONENTS Widgets REQUIRED)
- find_package(Qt5 COMPONENTS Widgets REQUIRED)
- find_package(Qt5Sql REQUIRED)
- set(PROJECT_SOURCES
- main.cpp
- mainwindow.cpp
- mainwindow.h
- mainwindow.ui
- )
- add_executable(TeamProjectWork ${PROJECT_SOURCES})
- target_link_libraries(TeamProjectWork PRIVATE Qt5::Widgets Qt5::Sql)
- set_target_properties(TeamProjectWork PROPERTIES WIN32_EXECUTABLE TRUE)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement