forked from qt-creator/qt-creator
- Remove references to Qt Quick Designer plugin - Remove obsolete screenshots - Promote code completion and Qt Quick Toolbars - Describe using wizards to create custom QML types - Describe adding resources to CMakeLists.txt files Task-number: QTCREATORBUG-26483 Change-Id: I804870b962e0d1daa6ba7c988425f14ad87fe888 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
25 lines
568 B
CMake
25 lines
568 B
CMake
cmake_minimum_required(VERSION 3.16)
|
|
|
|
project(transitions VERSION 0.1 LANGUAGES CXX)
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
find_package(Qt6 6.2 COMPONENTS Quick REQUIRED)
|
|
|
|
qt_add_executable(transitionsexample
|
|
main.cpp
|
|
)
|
|
|
|
qt_add_qml_module(transitionsexample
|
|
URI transitions
|
|
VERSION 1.0
|
|
QML_FILES main.qml Page.qml
|
|
RESOURCES qt-logo.png
|
|
)
|
|
|
|
target_compile_definitions(transitionsexample
|
|
PRIVATE $<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:QT_QML_DEBUG>)
|
|
target_link_libraries(transitionsexample
|
|
PRIVATE Qt6::Quick)
|