You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

36 lines
991 B

# - Find Discount
# Find the discount markdown library.
#
# This module defines
# discount_FOUND - whether the discount library was found
# discount_LIBRARIES - the discount library
# discount_INCLUDE_DIR - the include path of the discount library
# Copyright (c) 2017, Julian Wolff, <wolff@julianwolff.de>
#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
if (discount_INCLUDE_DIR AND discount_LIBRARIES)
# Already in cache
set (discount_FOUND TRUE)
else (discount_INCLUDE_DIR AND discount_LIBRARIES)
find_library (discount_LIBRARIES
NAMES markdown libmarkdown
)
find_path (discount_INCLUDE_DIR
NAMES mkdio.h
)
include (FindPackageHandleStandardArgs)
find_package_handle_standard_args (discount DEFAULT_MSG discount_LIBRARIES discount_INCLUDE_DIR)
endif (discount_INCLUDE_DIR AND discount_LIBRARIES)
mark_as_advanced(discount_INCLUDE_DIR discount_LIBRARIES)