File: FindLibRevenge.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 (37 lines) | stat: -rw-r--r-- 1,300 bytes parent folder | download | duplicates (3)
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
29
30
31
32
33
34
35
36
37
# - Try to find the librevenge
# Once done this will define
#
#  LIBREVENGE_FOUND - system has LIBREVENGE
#  LIBREVENGE_INCLUDE_DIRS - the LIBREVENGE include directory
#  LIBREVENGE_LIBRARIES - Link these to use LIBREVENGE
#  LIBREVENGE_DEFINITIONS - Compiler switches required for using LIBREVENGE
#

include(LibFindMacros)
libfind_pkg_check_modules(REVENGE_PKGCONF librevenge-0.0)

find_path(REVENGE_INCLUDE_DIR
    NAMES librevenge/librevenge.h
    HINTS ${REVENGE_PKGCONF_INCLUDE_DIRS} ${REVENGE_PKGCONF_INCLUDEDIR}
    PATH_SUFFIXES librevenge-0.0
)

find_path(REVENGE_STREAM_INCLUDE_DIR
    NAMES librevenge-stream/librevenge-stream.h
    HINTS ${REVENGE_STREAM_PKGCONF_INCLUDE_DIRS} ${REVENGE_STREAM_PKGCONF_INCLUDEDIR}
    PATH_SUFFIXES librevenge-0.0
)

find_library(REVENGE_LIBRARY
    NAMES revenge librevenge revenge-0.0 librevenge-0.0
    HINTS ${REVENGE_STREAM_PKGCONF_LIBRARY_DIRS} ${REVENGE_STREAM_PKGCONF_LIBDIR}
)

find_library(REVENGE_STREAM_LIBRARY
    NAMES revenge-stream librevenge-stream revenge-stream-0.0 librevenge-stream-0.0
    HINTS ${REVENGE_PKGCONF_LIBRARY_DIRS} ${REVENGE_PKGCONF_LIBDIR}
)

set(LIBREVENGE_PROCESS_LIBS REVENGE_LIBRARY REVENGE_STREAM_LIBRARY)
set(LIBREVENGE_PROCESS_INCLUDES REVENGE_INCLUDE_DIR REVENGE_STREAM_INCLUDE_DIR)
libfind_process(LIBREVENGE)