FIND_PATH(SHOUT_INCLUDE_DIR PATH_SUFFIXES "shout" NAMES shout.h) # Look for the library. FIND_LIBRARY(SHOUT_LIBRARY NAMES shout) # Handle the QUIETLY and REQUIRED arguments and set SHOUT_FOUND to TRUE if all listed variables are TRUE. INCLUDE(FindPackageHandleStandardArgs) FIND_PACKAGE_HANDLE_STANDARD_ARGS(SHOUT DEFAULT_MSG SHOUT_LIBRARY SHOUT_INCLUDE_DIR) # Copy the results to the output variables. IF(SHOUT_FOUND) SET(SHOUT_LIBRARIES ${SHOUT_LIBRARY}) SET(SHOUT_INCLUDE_DIRS ${SHOUT_INCLUDE_DIR}) ELSE(SHOUT_FOUND) SET(SHOUT_LIBRARIES) SET(SHOUT_INCLUDE_DIRS) ENDIF(SHOUT_FOUND) MARK_AS_ADVANCED(SHOUT_INCLUDE_DIRS SHOUT_LIBRARIES)