mirror of
https://github.com/ZDoom/ZMusic.git
synced 2025-01-30 04:10:56 +00:00
- added basic CMake module for ZMusic
This commit is contained in:
parent
8e66bb2df8
commit
9c2a3ef1c1
1 changed files with 21 additions and 0 deletions
21
cmake/FindZMusic.cmake
Normal file
21
cmake/FindZMusic.cmake
Normal file
|
@ -0,0 +1,21 @@
|
|||
# - Find ZMusic
|
||||
# Find the native fluidsynth includes and library
|
||||
#
|
||||
# ZMUSIC_INCLUDE_DIR - where to find zmusic.h
|
||||
# ZMUSIC_LIBRARIES - List of libraries when using ZMusic
|
||||
# ZMUSIC_FOUND - True if ZMusic found.
|
||||
|
||||
if(ZMUSIC_INCLUDE_DIR AND ZMUSIC_LIBRARIES)
|
||||
# Already in cache, be silent
|
||||
set(ZMUSIC_FIND_QUIETLY TRUE)
|
||||
endif()
|
||||
|
||||
find_path(ZMUSIC_INCLUDE_DIR zmusic.h)
|
||||
|
||||
find_library(ZMUSIC_LIBRARIES NAMES zmusic)
|
||||
mark_as_advanced(ZMUSIC_LIBRARIES ZMUSIC_INCLUDE_DIR)
|
||||
|
||||
# handle the QUIETLY and REQUIRED arguments and set ZMUSIC_FOUND to TRUE if
|
||||
# all listed variables are TRUE
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(ZMusic DEFAULT_MSG ZMUSIC_LIBRARIES ZMUSIC_INCLUDE_DIR)
|
Loading…
Reference in a new issue