为qtcreator增加识别qml模块的QML_IMPORT_PATH变量

This commit is contained in:
hewenfei 2022-12-13 16:33:14 +08:00
parent 7aec1a8561
commit f3053a7076
1 changed files with 5 additions and 0 deletions

View File

@ -51,6 +51,11 @@ include_directories(src/appdata)
include_directories(src/settings) include_directories(src/settings)
include_directories(src/uiconfig) include_directories(src/uiconfig)
# Qt Creatorqml
list(APPEND QML_MODULE_DIRS "${PROJECT_SOURCE_DIR}/qml")
set(QML_IMPORT_PATH "${QML_MODULE_DIRS}" CACHE STRING "Qt Creator extra qml import paths." FORCE)
message(STATUS "QML_IMPORT_PATH: ${QML_IMPORT_PATH}")
# #
set(UKUI_MENU_DATA_DIR "/usr/share/ukui-menu") set(UKUI_MENU_DATA_DIR "/usr/share/ukui-menu")
set(UKUI_MENU_TRANSLATION_DIR "${UKUI_MENU_DATA_DIR}/translations") set(UKUI_MENU_TRANSLATION_DIR "${UKUI_MENU_DATA_DIR}/translations")