From e174c759182e11f85e221eff8684088eebd563a4 Mon Sep 17 00:00:00 2001 From: Richard Date: Sun, 9 Mar 2025 22:33:07 +0000 Subject: initial --- cmake/Modules/FindShout.cmake | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 cmake/Modules/FindShout.cmake (limited to 'cmake/Modules/FindShout.cmake') 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) -- cgit v1.2.3