Changeset View
Changeset View
Standalone View
Standalone View
applets/dict/CMakeLists.txt
1 | find_package(Qt5WebEngine ${REQUIRED_QT_VERSION} CONFIG) | 1 | find_package(Qt5WebEngine ${REQUIRED_QT_VERSION} CONFIG) | ||
---|---|---|---|---|---|
2 | 2 | | |||
3 | set_package_properties(Qt5WebEngine PROPERTIES | 3 | set_package_properties(Qt5WebEngine PROPERTIES | ||
4 | PURPOSE "Needed by the dict applet" | 4 | PURPOSE "Needed by the dict applet" | ||
5 | URL "https://doc.qt.io/qt-5/qtwebengine-index.html" | 5 | URL "https://doc.qt.io/qt-5/qtwebengine-index.html" | ||
6 | TYPE OPTIONAL | 6 | TYPE OPTIONAL | ||
7 | ) | 7 | ) | ||
8 | 8 | | |||
9 | if (Qt5WebEngine_FOUND) | 9 | if (Qt5WebEngine_FOUND) | ||
10 | 10 | | |||
11 | ####################################################################################### | 11 | ####################################################################################### | ||
12 | # Package (metadata.desktop and QML) | 12 | # Package (metadata.desktop and QML) | ||
13 | plasma_install_package(package org.kde.plasma_applet_dict) | 13 | plasma_install_package(package org.kde.plasma_applet_dict) | ||
14 | # TODO: fix pluginid "org.kde.plasma_applet_dict" into properly namespaced id "org.kde.plasma.dict" | ||||
14 | 15 | | |||
15 | ####################################################################################### | 16 | ####################################################################################### | ||
16 | # Icon for the package | 17 | # Icon for the package | ||
17 | install(FILES accessories-dictionary.svgz | 18 | install(FILES accessories-dictionary.svgz | ||
18 | DESTINATION ${DATA_INSTALL_DIR}/icons/hicolor/scalable/apps/) | 19 | DESTINATION ${DATA_INSTALL_DIR}/icons/hicolor/scalable/apps/) | ||
19 | 20 | | |||
20 | ####################################################################################### | 21 | ####################################################################################### | ||
21 | # C++ Plugin | 22 | # C++ Plugin | ||
22 | 23 | | |||
23 | add_definitions(-DTRANSLATION_DOMAIN="plasma_applet_org.kde.plasma.dict") | 24 | add_definitions(-DTRANSLATION_DOMAIN="plasma_applet_org.kde.plasma_applet_dict") | ||
24 | 25 | | |||
25 | set(dict_SRCS | 26 | set(dict_SRCS | ||
26 | plugin/dict_plugin.cpp | 27 | plugin/dict_plugin.cpp | ||
27 | plugin/dict_object.cpp | 28 | plugin/dict_object.cpp | ||
28 | plugin/dictionariesmodel.cpp | 29 | plugin/dictionariesmodel.cpp | ||
29 | ) | 30 | ) | ||
30 | 31 | | |||
31 | add_library(dictplugin SHARED ${dict_SRCS}) | 32 | add_library(dictplugin SHARED ${dict_SRCS}) | ||
Show All 12 Lines |