MuseScore/build/FindPortAudio.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
671 B
CMake

find_path(PORTAUDIO_INCLUDE_DIR portaudio.h PATHS ${PROJECT_SOURCE_DIR}/dependencies/include;)
set(CMAKE_FIND_LIBRARY_SUFFIXES ".lib")
find_library(PORTAUDIO_LIBRARY NAMES portaudio PATHS ${DEPENDENCIES_DIR} NO_DEFAULT_PATH)
if (MINGW)
set(PORTAUDIO_INCLUDE_DIR "")
set(PORTAUDIO_LIBRARY "")
endif(MINGW)
message(STATUS ${PORTAUDIO_LIBRARY})
if (PORTAUDIO_INCLUDE_DIR AND PORTAUDIO_LIBRARY)
set(PORTAUDIO_FOUND TRUE)
endif (PORTAUDIO_INCLUDE_DIR AND PORTAUDIO_LIBRARY)
if (PORTAUDIO_FOUND)
message (STATUS "Found PortAudio: ${PORTAUDIO_LIBRARY}")
else (PORTAUDIO_FOUND)
message (FATAL_ERROR "Could not find: PortAudio")
endif (PORTAUDIO_FOUND)