openjpeg/CMake/FindFCGI.cmake

21 lines
632 B
CMake
Raw Normal View History

2011-08-12 15:57:36 +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:52:23 +02:00
SET(FCGI_LIBRARIES ${FCGI_LIBRARY})
2011-08-12 15:57:36 +02:00
SET(FCGI_INCLUDE_DIRS ${FCGI_INCLUDE_DIR})
ELSE(FCGI_FOUND)
SET(FCGI_LIBRARIES)
SET(FCGI_INCLUDE_DIRS)
ENDIF(FCGI_FOUND)
2011-11-24 11:15:43 +01:00
MARK_AS_ADVANCED(FCGI_INCLUDE_DIR FCGI_LIBRARY)