diff options
author | Richard <q@1bpm.net> | 2025-03-09 22:33:07 +0000 |
---|---|---|
committer | Richard <q@1bpm.net> | 2025-03-09 22:33:07 +0000 |
commit | e174c759182e11f85e221eff8684088eebd563a4 (patch) | |
tree | 70155a2ec6c9fbf46c821ebe66ab63c0f17fbd8d /cmake/Modules/FindShout.cmake | |
download | csound-shout-e174c759182e11f85e221eff8684088eebd563a4.tar.gz csound-shout-e174c759182e11f85e221eff8684088eebd563a4.tar.bz2 csound-shout-e174c759182e11f85e221eff8684088eebd563a4.zip |
initial
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) |