#
# This module finds if KDSoap is installed.
#
# KDSoap_FOUND         - Set to TRUE if KDSoap was found.
# KDSoap_LIBRARIES     - Path to KDSoap libraries.
# KDSoap_INCLUDE_DIR   - Path to the KDSoap include directory.
# KDSoap_CODEGENERATOR - Path to the KDSoap code generator.
#
# SPDX-FileCopyrightText: 2011-2021 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
#
# SPDX-License-Identifier: BSD-3-Clause
#

include(FindPackageHandleStandardArgs)

find_library(KDSoap_LIBRARIES
  NAMES KDSoap kdsoap
  PATH_SUFFIXES bin)

find_path(KDSoap_INCLUDE_DIR
  NAMES KDSoapClient/KDSoapValue.h
  PATH_SUFFIXES include src)

find_program(KDSoap_CODEGENERATOR
  NAMES kdwsdl2cpp
  PATH_SUFFIXES bin)

mark_as_advanced(KDSoap_LIBRARIES KDSoap_INCLUDE_DIR KDSoap_CODEGENERATOR)

find_package_handle_standard_args(KDSoap DEFAULT_MSG KDSoap_LIBRARIES KDSoap_INCLUDE_DIR KDSoap_CODEGENERATOR)
