2 # Find the native IFP includes and library
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.
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
20 FIND_LIBRARY(IFP_LIBRARY
26 if (IFP_INCLUDE_DIR AND IFP_LIBRARY)
28 set(IFP_LIBRARIES ${IFP_LIBRARY} )
29 endif (IFP_INCLUDE_DIR AND IFP_LIBRARY)
32 if (NOT Ifp_FIND_QUIETLY)
33 message(STATUS "Found IFP: ${IFP_LIBRARY}")
34 endif (NOT Ifp_FIND_QUIETLY)
36 if (Ifp_FIND_REQUIRED)
37 message(FATAL_ERROR "Could NOT find IFP")
38 endif (Ifp_FIND_REQUIRED)
41 MARK_AS_ADVANCED(IFP_INCLUDE_DIR IFP_LIBRARY)