Skip to content

Commit

Permalink
Added find script for FastCGI (used by DisplayCluster WebService)
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphael Dumusc committed Jan 28, 2014
1 parent 8324611 commit 2eb58fd
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions FindFCGI.cmake
@@ -0,0 +1,25 @@
# - Try to Find libfastcgi
# Once done this will define
# FCGI_FOUND
# FCGI_INCLUDE_DIRS
# FCGI_LIBRARIES

# Look for the header file.
find_path(FCGI_INCLUDE_DIR NAMES fastcgi.h fcgi.h fcgio.h)

# Look for the library.
find_library(FCGI_LIBRARY NAMES fcgi)
find_library(FCGIPP_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_INCLUDE_DIR FCGI_LIBRARY FCGIPP_LIBRARY)

# Copy the results to the output variables.
if(FCGI_FOUND)
set(FCGI_LIBRARIES ${FCGI_LIBRARY} ${FCGIPP_LIBRARY})
set(FCGI_INCLUDE_DIRS ${FCGI_INCLUDE_DIR})
endif()

mark_as_advanced(FCGI_INCLUDE_DIR FCGI_LIBRARY FCGIPP_LIBRARY)

0 comments on commit 2eb58fd

Please sign in to comment.