Warning, /libraries/ktextaddons/cmake/FindSlimt.cmake is written in an unsupported language. File is not indexed.

0001 # - Find Slimt
0002 # Find the slimt library.
0003 #
0004 # This module defines
0005 #  slimt_FOUND - whether the slimt library was found
0006 #  slimt_LIBRARIES - the slimt library
0007 #  slimt_INCLUDE_DIRS - the include path of the slimt library
0008 
0009 # SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org>
0010 #
0011 # SPDX-License-Identifier: BSD-3-Clause
0012 
0013 if (slimt_INCLUDE_DIRS AND slimt_LIBRARIES)
0014   # Already in cache
0015   set (slimt_FOUND TRUE)
0016 else ()
0017     find_path(slimt_INCLUDE_DIRS
0018         NAMES slimt.hh
0019         PATH_SUFFIXES slimt
0020     )
0021 
0022     MESSAGE(STATUS "slimt_INCLUDE_DIRS************** ${slimt_INCLUDE_DIRS}")
0023 
0024     find_library(slimt_LIBRARIES
0025         NAMES slimt
0026     )
0027 
0028     MESSAGE(STATUS "slimt_LIBRARIES **************** ${slimt_LIBRARIES}")
0029 
0030     include(FindPackageHandleStandardArgs)
0031     find_package_handle_standard_args(slimt DEFAULT_MSG slimt_LIBRARIES slimt_INCLUDE_DIRS)
0032 endif()
0033 
0034 mark_as_advanced(slimt_INCLUDE_DIRS slimt_LIBRARIES)
0035 if (slimt_FOUND)
0036    add_library(slimt::Lib UNKNOWN IMPORTED)
0037    set_target_properties(slimt::Lib PROPERTIES INTERFACE_INCLUDE_DIRECTORIES ${slimt_INCLUDE_DIRS} IMPORTED_LOCATION ${slimt_LIBRARIES})
0038 endif()