Warning, /network/konqueror/cmake/modules/FindWebEngineDictConverter.cmake is written in an unsupported language. File is not indexed.
0001 # This file is part of the KDE project.
0002 #
0003 # SPDX-FileCopyrightText: 2021 Stefano Crocco <posta@stefanocrocco.it>
0004 #
0005 # SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0006 #[=======================================================================[.rst:
0007 FindWebEngineDictConverter
0008 -------
0009
0010 Finds the qwebengine_convert_dict tool
0011
0012 Result Variables
0013 ^^^^^^^^^^^^^^^^
0014
0015 This will define the following variables:
0016
0017 ``WebEngineDictConverter_FOUND``
0018 True if the system has the qwebengine_convert_dict executable.
0019 ``WebEngineDictConverter_EXECUTABLE``
0020 The path to the qwebengine_convert_dict executable
0021 #]=======================================================================]
0022 include(ECMQueryQt)
0023 if (KF_MAJOR_VERSION STRLESS "6")
0024 ecm_query_qt(CONVERTER_HINT_DIR QT_INSTALL_BINS)
0025 set(hint "${CONVERTER_HINT_DIR}")
0026 else()
0027 ecm_query_qt(CONVERTER_HINT_DIR QT_INSTALL_LIBEXECS)
0028 set(hint "${CONVERTER_HINT_DIR}")
0029 endif()
0030 find_program(WebEngineDictConverter_EXECUTABLE qwebengine_convert_dict HINTS ${hint})
0031
0032 include(FindPackageHandleStandardArgs)
0033 find_package_handle_standard_args(WebEngineDictConverter
0034 FOUND_VAR WebEngineDictConverter_FOUND
0035 REQUIRED_VARS WebEngineDictConverter_EXECUTABLE
0036 )