MuseScore/build/FindVorbisfile.cmake

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
702 B
CMake
Raw Normal View History

find_path(VORBISFILE_INCLUDE_DIR vorbisfile.h PATHS ${PROJECT_SOURCE_DIR}/dependencies/include/vorbis;)
if (MINGW)
set(CMAKE_FIND_LIBRARY_SUFFIXES ".dll")
else (MINGW)
set(CMAKE_FIND_LIBRARY_SUFFIXES ".lib")
endif (MINGW)
find_library(VORBISFILE_LIBRARY NAMES libvorbisfile PATHS ${DEPENDENCIES_DIR} NO_DEFAULT_PATH)
message(STATUS ${VORBISFILE_LIBRARY})
if (VORBISFILE_INCLUDE_DIR AND VORBISFILE_LIBRARY)
set(VORBISFILE_FOUND TRUE)
endif (VORBISFILE_INCLUDE_DIR AND VORBISFILE_LIBRARY)
if (VORBISFILE_FOUND)
message (STATUS "Found vorbisfile: ${VORBISFILE_LIBRARY}")
else (VORBISFILE_FOUND)
message (FATAL_ERROR "Could not find: vorbisfile")
endif (VORBISFILE_FOUND)