annotate src/portaudio_20140130/cmake_support/FindASIOSDK.cmake @ 81:7029a4916348

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