Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QT CMake command qt_standard_project_setup() for older versions. How?
Forum Updated to NodeBB v4.3 + New Features

QT CMake command qt_standard_project_setup() for older versions. How?

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 328 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bogong
    wrote on last edited by bogong
    #1

    Hello all!

    There are in CMakeLists.txt:

    set(CMAKE_AUTOMOC ON)
    set(CMAKE_AUTORCC ON)
    set(CMAKE_AUTOUIC ON)
    
    find_package(Qt6 REQUIRED COMPONENTS 
        Widgets Core Gui Network Xml 
        RemoteObjects Quick Svg QuickControls2 
        Core5Compat Concurrent
    )
    set(LIBS ${LIBS} 
        Qt6::Widgets Qt6::Core Qt6::Gui
        Qt6::Network Qt6::Xml Qt6::RemoteObjects
        Qt6::Quick Qt6::Svg Qt6::QuickControls2
        Qt6::Core5Compat Qt6::Concurrent
    )
    
    qt_standard_project_setup()
    

    This piece of code works fine for version since 6.3. There are few questions when building for older:
    -- How to make the same functionality for older version?
    -- For now when building for Android without this command with older 6.2.8 it's not adding all of *.so files. What is missing?
    -- If used qt_standard_project_setup() no necessity to use set(CMAKE_AUTOMOC ON) and set(CMAKE_AUTORCC ON) and set(CMAKE_AUTOUIC ON)? Is it correct?

    In following reference there are few commands. Is there any example of how to exchange this command for older versions of Qt?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved