Revert previous commit, was incorrect
[amarok.git] / cmake / modules / FindIfp.cmake
blob6f90ab99ce98a0a88b3c411b28f615d974f769c5
1 # - Find IPF library
2 # Find the native IFP includes and library
3 # This module defines
4 #  IFP_INCLUDE_DIR, where to find ifp.h, etc.
5 #  IFP_LIBRARIES, libraries to link against to use IFP.
6 #  IFP_FOUND, If false, do NOT try to use IFP.
7 # also defined, but NOT for general use are
8 #  IFP_LIBRARY, where to find the IFP library.
10 if (IFP_INCLUDE_DIR)
11   # Already in cache, be silent
12   set(Ifp_FIND_QUIETLY TRUE)
13 endif (IFP_INCLUDE_DIR)
15 FIND_PATH(IFP_INCLUDE_DIR ifp.h
16   /usr/local/include
17   /usr/include
20 FIND_LIBRARY(IFP_LIBRARY
21   PATHS 
22   /usr/lib 
23   /usr/local/lib
26 if (IFP_INCLUDE_DIR AND IFP_LIBRARY)
27    set(IFP_FOUND TRUE)
28    set(IFP_LIBRARIES ${IFP_LIBRARY} )
29 endif (IFP_INCLUDE_DIR AND IFP_LIBRARY)
31 if (IFP_FOUND)
32    if (NOT Ifp_FIND_QUIETLY)
33       message(STATUS "Found IFP: ${IFP_LIBRARY}")
34    endif (NOT Ifp_FIND_QUIETLY)
35 else (IFP_FOUND)
36    if (Ifp_FIND_REQUIRED)
37       message(FATAL_ERROR "Could NOT find IFP")
38    endif (Ifp_FIND_REQUIRED)
39 endif (IFP_FOUND)
41 MARK_AS_ADVANCED(IFP_INCLUDE_DIR IFP_LIBRARY)