Skip to content

Commit

Permalink
chore: use Qt5's Quick Compiler to avoid qml cache
Browse files Browse the repository at this point in the history
This should be relaced to qt_add_qml_module when we migrated to Qt 6.

Log:
  • Loading branch information
BLumia committed Sep 11, 2023
1 parent cee8234 commit 9cb3968
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ set(BIN_NAME dde-launchpad)
include(FeatureSummary)
include(GNUInstallDirs)

find_package(Qt5 REQUIRED COMPONENTS Core Gui Concurrent Qml Svg Quick QuickControls2 LinguistTools)
find_package(Qt5 REQUIRED COMPONENTS Core Gui Concurrent Qml Svg Quick QuickCompiler QuickControls2 LinguistTools)
find_package(Dtk REQUIRED COMPONENTS Core Gui)
find_package(AppStreamQt REQUIRED)

Expand Down Expand Up @@ -76,10 +76,12 @@ qt_create_translation(TRANSLATED_FILES ${QML_FILES} ${SOURCE_FILES} src/models/a

qt_add_dbus_adaptor(DBUS_ADAPTER_FILES dbus/org.deepin.dde.Launcher1.xml launchercontroller.h LauncherController)

qtquick_compiler_add_resources(RESOURCES qml.qrc)

add_executable(${BIN_NAME}
${SOURCE_FILES}
${DBUS_ADAPTER_FILES}
qml.qrc
${RESOURCES}
${TRANSLATED_FILES}
)

Expand Down

0 comments on commit 9cb3968

Please sign in to comment.