Advertisement
DBDEBICH

[db error] CMakeLists.txt

Apr 26th, 2024 (edited)
1,395
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 0.70 KB | Source Code | 0 0
  1. cmake_minimum_required(VERSION 3.24)
  2.  
  3. project(TeamProjectWork VERSION 0.1 LANGUAGES CXX)
  4.  
  5. set(CMAKE_INCLUDE_CURRENT_DIR ON)
  6.  
  7. set(CMAKE_AUTOUIC ON)
  8. set(CMAKE_AUTOMOC ON)
  9. set(CMAKE_AUTORCC ON)
  10.  
  11. set(CMAKE_CXX_STANDARD 17)
  12. set(CMAKE_CXX_STANDARD_REQUIRED ON)
  13.  
  14. find_package(QT NAMES Qt5 COMPONENTS Widgets REQUIRED)
  15. find_package(Qt5 COMPONENTS Widgets REQUIRED)
  16. find_package(Qt5Sql REQUIRED)
  17.  
  18. set(PROJECT_SOURCES
  19.         main.cpp
  20.         mainwindow.cpp
  21.         mainwindow.h
  22.         mainwindow.ui
  23. )
  24.  
  25. add_executable(TeamProjectWork ${PROJECT_SOURCES})
  26.  
  27. target_link_libraries(TeamProjectWork PRIVATE Qt5::Widgets Qt5::Sql)
  28.  
  29. set_target_properties(TeamProjectWork PROPERTIES WIN32_EXECUTABLE TRUE)
  30.  
Tags: cmake
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement