annotate src/portaudio/cmake_support/FindASIOSDK.cmake @ 44:9894b839b0cb

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