QT CMake command qt_standard_project_setup() for older versions. How?
-
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?