annotate src/portaudio_20161030/cmake_support/FindASIOSDK.cmake @ 55:284acf908dcd

Add source for PortAudio stable v190600_20161030
author Chris Cannam
date Tue, 03 Jan 2017 13:44:07 +0000
parents src/portaudio/cmake_support/FindASIOSDK.cmake@e13257ea84a4
children
rev   line source
Chris@55 1 # $Id: $
Chris@55 2 #
Chris@55 3 # - Try to find the ASIO SDK
Chris@55 4 # Once done this will define
Chris@55 5 #
Chris@55 6 # ASIOSDK_FOUND - system has ASIO SDK
Chris@55 7 # ASIOSDK_ROOT_DIR - path to the ASIO SDK base directory
Chris@55 8 # ASIOSDK_INCLUDE_DIR - the ASIO SDK include directory
Chris@55 9
Chris@55 10 if(WIN32)
Chris@55 11 else(WIN32)
Chris@55 12 message(FATAL_ERROR "FindASIOSDK.cmake: Unsupported platform ${CMAKE_SYSTEM_NAME}" )
Chris@55 13 endif(WIN32)
Chris@55 14
Chris@55 15 file(GLOB results "${CMAKE_CURRENT_SOURCE_DIR}/../as*")
Chris@55 16 foreach(f ${results})
Chris@55 17 if(IS_DIRECTORY ${f})
Chris@55 18 set(ASIOSDK_PATH_HINT ${ASIOSDK_PATH_HINT} ${f})
Chris@55 19 endif()
Chris@55 20 endforeach()
Chris@55 21
Chris@55 22 find_path(ASIOSDK_ROOT_DIR
Chris@55 23 common/asio.h
Chris@55 24 HINTS
Chris@55 25 ${ASIOSDK_PATH_HINT}
Chris@55 26 )
Chris@55 27
Chris@55 28 find_path(ASIOSDK_INCLUDE_DIR
Chris@55 29 asio.h
Chris@55 30 PATHS
Chris@55 31 ${ASIOSDK_ROOT_DIR}/common
Chris@55 32 )
Chris@55 33
Chris@55 34 # handle the QUIETLY and REQUIRED arguments and set ASIOSDK_FOUND to TRUE if
Chris@55 35 # all listed variables are TRUE
Chris@55 36 INCLUDE(FindPackageHandleStandardArgs)
Chris@55 37 FIND_PACKAGE_HANDLE_STANDARD_ARGS(ASIOSDK DEFAULT_MSG ASIOSDK_ROOT_DIR ASIOSDK_INCLUDE_DIR)
Chris@55 38
Chris@55 39 MARK_AS_ADVANCED(
Chris@55 40 ASIOSDK_ROOT_DIR ASIOSDK_INCLUDE_DIR
Chris@55 41 )