Warning, /education/cantor/cmake/FindDiscount.cmake is written in an unsupported language. File is not indexed.
0001 # - Find Discount 0002 # Find the Discount markdown library. 0003 # 0004 # This module defines 0005 # Discount_FOUND - whether the Discount library was found 0006 # Discount_LIBRARIES - the Discount library 0007 # Discount_INCLUDE_DIR - the include path of the Discount library 0008 0009 # SPDX-FileCopyrightText: 2017 Julian Wolff <wolff@julianwolff.de> 0010 # SPDX-FileCopyrightText: 2018 Sune Vuorela <sune@kde.org> 0011 # SPDX-License-Identifier: BSD-3-Clause 0012 0013 if (Discount_INCLUDE_DIR AND Discount_LIBRARIES) 0014 0015 # Already in cache 0016 set (Discount_FOUND TRUE) 0017 0018 else (Discount_INCLUDE_DIR AND Discount_LIBRARIES) 0019 0020 find_library (Discount_LIBRARIES 0021 NAMES markdown libmarkdown 0022 ) 0023 0024 find_path (Discount_INCLUDE_DIR 0025 NAMES mkdio.h 0026 ) 0027 0028 include (FindPackageHandleStandardArgs) 0029 find_package_handle_standard_args (Discount DEFAULT_MSG Discount_LIBRARIES Discount_INCLUDE_DIR) 0030 0031 endif (Discount_INCLUDE_DIR AND Discount_LIBRARIES) 0032 0033 mark_as_advanced(Discount_INCLUDE_DIR Discount_LIBRARIES) 0034 0035 if (Discount_FOUND) 0036 add_library(Discount::Lib UNKNOWN IMPORTED) 0037 set_target_properties(Discount::Lib PROPERTIES INTERFACE_INCLUDE_DIRECTORIES ${Discount_INCLUDE_DIR} IMPORTED_LOCATION ${Discount_LIBRARIES}) 0038 endif()