mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2025-01-23 04:14:35 +08:00
fix #254
This commit is contained in:
parent
05fd8f5b8d
commit
050c2e595f
@ -12,10 +12,7 @@ option(FLUENTUI_BUILD_FRAMELESSHEPLER "Build FramelessHelper." ON)
|
|||||||
option(FLUENTUI_BUILD_STATIC_LIB "Build static library." OFF)
|
option(FLUENTUI_BUILD_STATIC_LIB "Build static library." OFF)
|
||||||
|
|
||||||
find_package(Qt6 REQUIRED COMPONENTS Core Quick Qml)
|
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}")
|
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)
|
||||||
cmake_path(GET QT_SDK_DIR PARENT_PATH QT_SDK_DIR)
|
cmake_path(GET QT_SDK_DIR PARENT_PATH QT_SDK_DIR)
|
||||||
|
@ -108,6 +108,7 @@ qt_add_qml_module(example
|
|||||||
VERSION 1.0
|
VERSION 1.0
|
||||||
QML_FILES ${qml_files}
|
QML_FILES ${qml_files}
|
||||||
RESOURCES ${resource_files}
|
RESOURCES ${resource_files}
|
||||||
|
RESOURCE_PREFIX "/"
|
||||||
)
|
)
|
||||||
|
|
||||||
#导入component头文件,不然通过QML_NAMED_ELEMENT生成的c++类会找不到头文件报错
|
#导入component头文件,不然通过QML_NAMED_ELEMENT生成的c++类会找不到头文件报错
|
||||||
|
@ -81,6 +81,7 @@ qt_add_qml_module(${PROJECT_NAME}
|
|||||||
SOURCES ${sources_files} ${FLUENTUI_VERSION_RC_PATH}
|
SOURCES ${sources_files} ${FLUENTUI_VERSION_RC_PATH}
|
||||||
QML_FILES ${qml_files}
|
QML_FILES ${qml_files}
|
||||||
RESOURCES ${resource_files}
|
RESOURCES ${resource_files}
|
||||||
|
RESOURCE_PREFIX "/"
|
||||||
)
|
)
|
||||||
|
|
||||||
#链接库
|
#链接库
|
||||||
|
Loading…
Reference in New Issue
Block a user