0599771d0e
Rename libs back so that theu don't have architecture postfix
21 lines
699 B
CMake
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)
|