This commit is contained in:
zhuzichu 2023-08-22 10:19:06 +08:00
parent 05fd8f5b8d
commit 050c2e595f
3 changed files with 3 additions and 4 deletions

View File

@ -12,10 +12,7 @@ option(FLUENTUI_BUILD_FRAMELESSHEPLER "Build FramelessHelper." ON)
option(FLUENTUI_BUILD_STATIC_LIB "Build static library." OFF)
find_package(Qt6 REQUIRED COMPONENTS Core Quick Qml)
# QTP0001
if(QT_KNOWN_POLICY_QTP0001)
qt_policy(SET QTP0001 NEW)
endif()
set(QT_SDK_DIR "${Qt6_DIR}")
cmake_path(GET QT_SDK_DIR PARENT_PATH QT_SDK_DIR)
cmake_path(GET QT_SDK_DIR PARENT_PATH QT_SDK_DIR)

View File

@ -108,6 +108,7 @@ qt_add_qml_module(example
VERSION 1.0
QML_FILES ${qml_files}
RESOURCES ${resource_files}
RESOURCE_PREFIX "/"
)
#component,QML_NAMED_ELEMENTc++

View File

@ -81,6 +81,7 @@ qt_add_qml_module(${PROJECT_NAME}
SOURCES ${sources_files} ${FLUENTUI_VERSION_RC_PATH}
QML_FILES ${qml_files}
RESOURCES ${resource_files}
RESOURCE_PREFIX "/"
)
#