File: FindLibchm.cmake

package info (click to toggle)
kchmviewer 5.1-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 1,868 kB
  • ctags: 918
  • sloc: cpp: 10,002; sh: 165; makefile: 2
file content (19 lines) | stat: -rw-r--r-- 648 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
# Tries to find libchm

FIND_PATH(LIBCHM_INCLUDE_DIR chm_lib.h /usr/include /usr/local/include)
FIND_LIBRARY(LIBCHM_LIBRARY NAMES chm PATH /usr/lib /usr/local/lib) 

IF (LIBCHM_INCLUDE_DIR AND LIBCHM_LIBRARY)
   SET(LIBCHM_FOUND TRUE)
ENDIF (LIBCHM_INCLUDE_DIR AND LIBCHM_LIBRARY)


IF (LIBCHM_FOUND)
   IF (NOT Libchm_FIND_QUIETLY)
      MESSAGE(STATUS "Found libchm: ${LIBCHM_LIBRARY}")
   ENDIF (NOT Libchm_FIND_QUIETLY)
ELSE (LIBCHM_FOUND)
   IF (Libchm_FIND_REQUIRED)
      MESSAGE(FATAL_ERROR "Could not find libchm. Please install chmlib-devel package (may be also called libchm-devel)")
   ENDIF (Libchm_FIND_REQUIRED)
ENDIF (LIBCHM_FOUND)