~ubuntu-branches/ubuntu/oneiric/strigi/oneiric

« back to all changes in this revision

Viewing changes to cmake/FindFAM.cmake

  • Committer: Package Import Robot
  • Author(s): Felix Geyer
  • Date: 2011-09-24 17:12:15 UTC
  • mfrom: (1.2.6 upstream)
  • mto: This revision was merged to the branch mainline in revision 44.
  • Revision ID: package-import@ubuntu.com-20110924171215-zmbi1f77jntvz65h
Tags: upstream-0.7.6
ImportĀ upstreamĀ versionĀ 0.7.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# - Try to find the fam libraries
2
 
# Once done this will define
3
 
#
4
 
# FAM_FOUND - system supports fam
5
 
# FAM_INCLUDE_DIR - the fam include directory
6
 
# FAM_LIBRARIES - libfam library
7
 
 
8
 
FIND_PATH(FAM_INCLUDE_DIR fam.h PATHS /usr/include /usr/local/include )
9
 
FIND_LIBRARY(FAM_LIBRARIES NAMES fam )
10
 
 
11
 
FIND_LIBRARY(GAMIN_LIBRARIES 
12
 
        NAMES gamin gamin-1 
13
 
        PATH /usr/lib /usr/local/lib /usr/lib64 /usr/local/lib64 )
14
 
 
15
 
IF (NOT GAMIN_LIBRARIES AND FAM_LIBRARIES)
16
 
  message (STATUS "Please use Gamin instead of FAM if possible") 
17
 
ENDIF (NOT GAMIN_LIBRARIES AND FAM_LIBRARIES)
18
 
 
19
 
if (GAMIN_LIBRARIES)
20
 
  message(STATUS "Found Gamin: good choice, it's better then FAM")
21
 
endif (GAMIN_LIBRARIES)
22
 
 
23
 
IF(FAM_INCLUDE_DIR AND FAM_LIBRARIES)
24
 
  SET(FAM_FOUND 1)
25
 
  if(NOT FAM_FIND_QUIETLY)
26
 
    if (GAMIN_LIBRARIES)
27
 
      message(STATUS "Found FAM (provided by Gamin): ${FAM_LIBRARIES}")
28
 
    else (GAMIN_LIBRARIES)
29
 
      message(STATUS "Found FAM: ${FAM_LIBRARIES}")
30
 
    endif (GAMIN_LIBRARIES)
31
 
  endif(NOT FAM_FIND_QUIETLY)
32
 
ELSE(FAM_INCLUDE_DIR AND FAM_LIBRARIES)
33
 
  SET(FAM_FOUND 0 CACHE BOOL "Not found FAM")
34
 
  message(STATUS "NOT Found FAM, disabling it")
35
 
ENDIF(FAM_INCLUDE_DIR AND FAM_LIBRARIES)
36
 
 
37
 
MARK_AS_ADVANCED(FAM_INCLUDE_DIR FAM_LIBRARIES)
38