2017-08-24 23:04:54 +00:00
|
|
|
# - Find Discount
|
|
|
|
# Find the discount markdown library.
|
|
|
|
#
|
|
|
|
# This module defines
|
2021-01-08 23:21:30 +00:00
|
|
|
# Discount_FOUND - whether the discount library was found
|
|
|
|
# PkgConfig::Discount - the discount target to link to
|
2017-08-24 23:04:54 +00:00
|
|
|
|
|
|
|
# Copyright (c) 2017, Julian Wolff, <wolff@julianwolff.de>
|
2018-05-02 20:11:13 +00:00
|
|
|
# Copyright (c) 2018, Sune Vuorela, <sune@kde.org>
|
2017-08-24 23:04:54 +00:00
|
|
|
#
|
|
|
|
# Redistribution and use is allowed according to the terms of the BSD license.
|
|
|
|
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
|
|
|
|
2021-01-08 23:21:30 +00:00
|
|
|
include(FindPackageHandleStandardArgs)
|
2017-08-24 23:04:54 +00:00
|
|
|
|
2021-01-08 23:21:30 +00:00
|
|
|
find_package(PkgConfig REQUIRED)
|
2017-08-24 23:04:54 +00:00
|
|
|
|
2021-01-08 23:21:30 +00:00
|
|
|
pkg_check_modules(Discount IMPORTED_TARGET "libmarkdown")
|
2017-08-24 23:04:54 +00:00
|
|
|
|
2021-01-08 23:21:30 +00:00
|
|
|
find_package_handle_standard_args(Discount DEFAULT_MSG Discount_LIBRARIES)
|