okular/cmake/modules/FindDiscount.cmake

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
659 B
CMake
Raw Normal View History

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