Warning, /office/calligra/cmake/modules/FindLibWps.cmake is written in an unsupported language. File is not indexed.

0001 # - Try to find LibWps
0002 # Once done this will define
0003 #
0004 #  LIBWPS_FOUND       - libwps is available
0005 #  LIBWPS_INCLUDE_DIRS - include directory, e.g. /usr/include
0006 #  LIBWPS_LIBRARIES   - the libraries needed to use LibWps
0007 #
0008 # Copyright (C) 2013 Yue Liu <yue.liu@mail.com>
0009 # Redistribution and use is allowed according to the terms of the BSD license.
0010 
0011 include(LibFindMacros)
0012 libfind_package(LIBWPS LibWpd)
0013 libfind_pkg_check_modules(LIBWPS_PKGCONF libwps-0.4)
0014 
0015 find_path(LIBWPS_INCLUDE_DIR
0016     NAMES libwps/libwps.h
0017     HINTS ${LIBWPS_PKGCONF_INCLUDE_DIRS} ${LIBWPS_PKGCONF_INCLUDEDIR}
0018     PATH_SUFFIXES libwps-0.4
0019 )
0020 
0021 find_library(LIBWPS_LIBRARY
0022     NAMES wps wps-0.4
0023     HINTS ${LIBWPS_PKGCONF_LIBRARY_DIRS} ${LIBWPS_PKGCONF_LIBDIR}
0024 )
0025 
0026 set(LIBWPS_PROCESS_LIBS LIBWPS_LIBRARY LIBWPD_LIBRARIES)
0027 set(LIBWPS_PROCESS_INCLUDES LIBWPS_INCLUDE_DIR LIBWPD_INCLUDE_DIRS)
0028 libfind_process(LIBWPS)