File: FindLibWpd.cmake

package info (click to toggle)
calligra 1:2.8.5+dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 397,516 kB
  • ctags: 185,064
  • sloc: cpp: 1,505,875; python: 45,987; ansic: 28,421; xml: 26,472; sh: 23,986; java: 18,214; objc: 3,965; makefile: 2,816; perl: 2,792; yacc: 2,601; lex: 1,410; sql: 903; ruby: 737; asm: 236; lisp: 121
file content (26 lines) | stat: -rw-r--r-- 748 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# - Try to find the libwpd (WordPerfect library)
# Once done this will define
#
#  LIBWPD_FOUND - system has LIBWPD
#  LIBWPD_INCLUDE_DIRS - the LIBWPD include directory
#  LIBWPD_LIBRARIES - Link these to use LIBWPD
#  LIBWPD_DEFINITIONS - Compiler switches required for using LIBWPD
#

include(LibFindMacros)
libfind_pkg_check_modules(WPD_PKGCONF libwpd-0.10)

find_path(WPD_INCLUDE_DIR
    NAMES libwpd/libwpd.h
    HINTS ${WPD_PKGCONF_INCLUDE_DIRS} ${WPD_PKGCONF_INCLUDEDIR}
    PATH_SUFFIXES libwpd-0.10
)

find_library(WPD_LIBRARY
    NAMES wpd libwpd wpd-0.10 libwpd-0.10
    HINTS ${WPD_PKGCONF_LIBRARY_DIRS} ${WPD_PKGCONF_LIBDIR}
)

set(LIBWPD_PROCESS_LIBS WPD_LIBRARY)
set(LIBWPD_PROCESS_INCLUDES WPD_INCLUDE_DIR)
libfind_process(LIBWPD)