diff options
Diffstat (limited to 'cmake/Modules/FindShout.cmake')
-rw-r--r-- | cmake/Modules/FindShout.cmake | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/cmake/Modules/FindShout.cmake b/cmake/Modules/FindShout.cmake new file mode 100644 index 0000000..75be2c5 --- /dev/null +++ b/cmake/Modules/FindShout.cmake @@ -0,0 +1,16 @@ +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) |