MuseScore/build/FindVorbisfile.cmake
anatoly-os 0599771d0e fix mp3 export after migration to 64-bit
Rename libs back so that theu don't have architecture postfix
2018-08-23 16:50:57 +02:00

21 lines
699 B
CMake

find_path(VORBISFILE_INCLUDE_DIR vorbisfile.h PATHS ${PROJECT_SOURCE_DIR}/dependencies/include/vorbis;)
set(CMAKE_FIND_LIBRARY_SUFFIXES ".lib")
find_library(VORBISFILE_LIBRARY NAMES libvorbisfile PATHS ${DEPENDENCIES_DIR} NO_DEFAULT_PATH)
if (MINGW)
set(VORBISFILE_INCLUDE_DIR "")
set(VORBISFILE_LIBRARY "")
endif(MINGW)
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)