Warning, /plasma/kdeplasma-addons/applets/dict/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 find_package(Qt${QT_MAJOR_VERSION}WebEngine ${QT_MIN_VERSION} CONFIG) 0002 0003 set_package_properties(Qt5WebEngine PROPERTIES 0004 PURPOSE "Needed by the dict applet" 0005 URL "https://doc.qt.io/qt-5/qtwebengine-index.html" 0006 TYPE OPTIONAL 0007 ) 0008 0009 if (Qt${QT_MAJOR_VERSION}WebEngine_FOUND) 0010 0011 ####################################################################################### 0012 # Package (metadata.desktop and QML) 0013 plasma_install_package(package org.kde.plasma_applet_dict) 0014 # TODO: fix pluginid "org.kde.plasma_applet_dict" into properly namespaced id "org.kde.plasma.dict" 0015 0016 ####################################################################################### 0017 # Icon for the package 0018 ecm_install_icons( 0019 ICONS sc-apps-accessories-dictionary.svgz 0020 DESTINATION ${KDE_INSTALL_ICONDIR} 0021 ) 0022 0023 ####################################################################################### 0024 # C++ Plugin 0025 0026 add_definitions(-DTRANSLATION_DOMAIN="plasma_applet_org.kde.plasma_applet_dict") 0027 0028 set(dict_SRCS 0029 plugin/dict_plugin.cpp 0030 plugin/dict_object.cpp 0031 plugin/dictionariesmodel.cpp 0032 ) 0033 0034 add_library(dictplugin SHARED ${dict_SRCS}) 0035 target_link_libraries(dictplugin 0036 KF5::I18n 0037 Qt::Quick 0038 Qt::WebEngine 0039 engine_dict_static 0040 ) 0041 0042 install(FILES plugin/qmldir DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/plasma/private/dict) 0043 install(TARGETS dictplugin DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/plasma/private/dict) 0044 0045 endif()