Solution:
Deploy KDSMEConfig.cmake which includes include(CMakeFindDependencyMacro) before find_dependency
#
# This file is part of the KDAB State Machine Editor Library.
#
# SPDX-FileCopyrightText: 2014-2023 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
# Author: Kevin Funk <kevin.funk@kdab.com>
#
# SPDX-License-Identifier: LGPL-2.1-only OR LicenseRef-KDAB-KDStateMachineEditor
#
# Licensees holding valid commercial KDAB State Machine Editor Library
# licenses may use this file in accordance with the KDAB State Machine Editor
# Library License Agreement provided with the Software.
#
# Contact info@kdab.com if any conditions of this licensing are not clear to you.
#
include(CMakeFindDependencyMacro)
find_dependency(Qt5Widgets)
find_dependency(Qt5Quick)
find_dependency(Qt5QuickWidgets)
include("${CMAKE_CURRENT_LIST_DIR}/KDSMETargets.cmake")
Configure Error on GammaRay without include-line:
c:\Development\SVN\GitHub\GammaRay\build>cmake -G Ninja -DCMAKE_INSTALL_PREFIX=C:\Development\Tools\GammaRay -DKDSME_DIR=C:\Development\Tools\KDSME\lib\cmake\KDSME ..
-- Could NOT find libdw (missing: LIBDW_LIBRARY LIBDW_INCLUDE_DIR)
-- Could NOT find libbfd (missing: LIBBFD_LIBRARY LIBBFD_INCLUDE_DIR LIBDL_LIBRARY LIBDL_INCLUDE_DIR)
-- Could NOT find libdwarf (missing: LIBDWARF_LIBRARY LIBDWARF_INCLUDE_DIR LIBELF_LIBRARY LIBELF_INCLUDE_DIR LIBDL_LIBRARY LIBDL_INCLUDE_DIR)
-- Building GammaRay 2.99.50 (revision: 1e04070c9) in Debug mode
-- Building probe for ABI: qt5_15-MSVC-140-i686 (Debug)
CMake Error at C:/Development/Tools/KDSME/lib/cmake/KDSME/KDSMEConfig.cmake:17 (find_dependency):
Unknown CMake command "find_dependency".
Call Stack (most recent call first):
plugins/statemachineviewer/CMakeLists.txt:53 (find_package)
-- Configuring incomplete, errors occurred!
See also "C:/Development/SVN/GitHub/GammaRay/build/CMakeFiles/CMakeOutput.log".
See also "C:/Development/SVN/GitHub/GammaRay/build/CMakeFiles/CMakeError.log".
Solution: Deploy KDSMEConfig.cmake which includes
include(CMakeFindDependencyMacro)
before find_dependencyConfigure Error on GammaRay without include-line: