Warning, /office/calligra/cmake/modules/FindLibWpg.cmake is written in an unsupported language. File is not indexed.
0001 # - Try to find LibWpg 0002 # Once done this will define 0003 # 0004 # LIBWPG_FOUND - libwpg is available 0005 # LIBWPG_INCLUDE_DIRS - include directory, e.g. /usr/include 0006 # LIBWPG_LIBRARIES - the libraries needed to use LibWpg 0007 # LIBWPG_DEFINITIONS - Compiler switches required for using LibWpg 0008 # 0009 # Copyright (C) 2007 Ariya Hidayat <ariya@kde.org> 0010 # Redistribution and use is allowed according to the terms of the BSD license. 0011 0012 include(LibFindMacros) 0013 libfind_package(LIBWPG LibWpd) 0014 libfind_pkg_check_modules(LIBWPG_PKGCONF libwpg-0.3) 0015 0016 find_path(LIBWPG_INCLUDE_DIR 0017 NAMES libwpg/libwpg.h 0018 HINTS ${LIBWPG_PKGCONF_INCLUDE_DIRS} ${LIBWPG_PKGCONF_INCLUDEDIR} 0019 PATH_SUFFIXES libwpg-0.3 0020 ) 0021 0022 find_library(LIBWPG_LIBRARY 0023 NAMES wpg wpg-0.3 0024 HINTS ${LIBWPG_PKGCONF_LIBRARY_DIRS} ${LIBWPG_PKGCONF_LIBDIR} 0025 ) 0026 0027 set(LIBWPG_PROCESS_LIBS LIBWPG_LIBRARY LIBWPD_LIBRARIES) 0028 set(LIBWPG_PROCESS_INCLUDES LIBWPG_INCLUDE_DIR LIBWPD_INCLUDE_DIRS) 0029 libfind_process(LIBWPG)