File: FindLibEtonyek.cmake

package info (click to toggle)
calligra 1%3A3.2.1%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 261,632 kB
  • sloc: cpp: 650,836; xml: 27,662; python: 6,044; perl: 2,724; yacc: 1,817; ansic: 1,325; sh: 1,277; lex: 1,107; ruby: 1,010; javascript: 495; makefile: 17
file content (28 lines) | stat: -rw-r--r-- 982 bytes parent folder | download | duplicates (5)
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
27
28
# - Try to find LibEtonyek
# Once done this will define
#
#  LIBETONYEK_FOUND       - LibEtonyek is available
#  LIBETONYEK_INCLUDE_DIRS - include directory, e.g. /usr/include
#  LIBETONYEK_LIBRARIES   - the libraries needed to use LibEtonyek
#
# Copyright (C) 2013 Yue Liu <yue.liu@mail.com>
# Redistribution and use is allowed according to the terms of the BSD license.

include(LibFindMacros)
libfind_package(LIBETONYEK LibWpd)
libfind_pkg_check_modules(LIBETONYEK_PKGCONF libetonyek-0.1)

find_path(LIBETONYEK_INCLUDE_DIR
    NAMES libetonyek/libetonyek.h
    HINTS ${LIBETONYEK_PKGCONF_INCLUDE_DIRS} ${LIBETONYEK_PKGCONF_INCLUDEDIR}
    PATH_SUFFIXES libetonyek-0.1
)

find_library(LIBETONYEK_LIBRARY
    NAMES etonyek etonyek-0.1
    HINTS ${LIBETONYEK_PKGCONF_LIBRARY_DIRS} ${LIBETONYEK_PKGCONF_LIBDIR}
)

set(LIBETONYEK_PROCESS_LIBS LIBETONYEK_LIBRARY LIBWPD_LIBRARIES)
set(LIBETONYEK_PROCESS_INCLUDES LIBETONYEK_INCLUDE_DIR LIBWPD_INCLUDE_DIRS)
libfind_process(LIBETONYEK)