2011-08-12 16:59:28 +02:00
|
|
|
# Look for the header file.
|
|
|
|
FIND_PATH(FCGI_INCLUDE_DIR NAMES fastcgi.h)
|
|
|
|
|
|
|
|
# Look for the library.
|
|
|
|
FIND_LIBRARY(FCGI_LIBRARY NAMES fcgi)
|
|
|
|
|
|
|
|
# Handle the QUIETLY and REQUIRED arguments and set FCGI_FOUND to TRUE if all listed variables are TRUE.
|
|
|
|
INCLUDE(FindPackageHandleStandardArgs)
|
|
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(FCGI DEFAULT_MSG FCGI_LIBRARY FCGI_INCLUDE_DIR)
|
|
|
|
|
|
|
|
# Copy the results to the output variables.
|
|
|
|
IF(FCGI_FOUND)
|
2011-08-16 10:54:54 +02:00
|
|
|
SET(FCGI_LIBRARIES ${FCGI_LIBRARY})
|
2011-08-12 16:59:28 +02:00
|
|
|
SET(FCGI_INCLUDE_DIRS ${FCGI_INCLUDE_DIR})
|
|
|
|
ELSE(FCGI_FOUND)
|
|
|
|
SET(FCGI_LIBRARIES)
|
|
|
|
SET(FCGI_INCLUDE_DIRS)
|
|
|
|
ENDIF(FCGI_FOUND)
|
|
|
|
|
2012-02-13 12:16:38 +01:00
|
|
|
MARK_AS_ADVANCED(FCGI_INCLUDE_DIR FCGI_LIBRARY)
|