Mercurial > hg > sv-dependency-builds
comparison src/portaudio_20161030_catalina_patch/cmake_support/FindASIOSDK.cmake @ 77:4edcd14160a5 pa_catalina
Duplicate for patch testing
| author | Chris Cannam |
|---|---|
| date | Wed, 30 Oct 2019 11:25:10 +0000 |
| parents | src/portaudio_20161030/cmake_support/FindASIOSDK.cmake@284acf908dcd |
| children |
comparison
equal
deleted
inserted
replaced
| 76:f3731af47c4b | 77:4edcd14160a5 |
|---|---|
| 1 # $Id: $ | |
| 2 # | |
| 3 # - Try to find the ASIO SDK | |
| 4 # Once done this will define | |
| 5 # | |
| 6 # ASIOSDK_FOUND - system has ASIO SDK | |
| 7 # ASIOSDK_ROOT_DIR - path to the ASIO SDK base directory | |
| 8 # ASIOSDK_INCLUDE_DIR - the ASIO SDK include directory | |
| 9 | |
| 10 if(WIN32) | |
| 11 else(WIN32) | |
| 12 message(FATAL_ERROR "FindASIOSDK.cmake: Unsupported platform ${CMAKE_SYSTEM_NAME}" ) | |
| 13 endif(WIN32) | |
| 14 | |
| 15 file(GLOB results "${CMAKE_CURRENT_SOURCE_DIR}/../as*") | |
| 16 foreach(f ${results}) | |
| 17 if(IS_DIRECTORY ${f}) | |
| 18 set(ASIOSDK_PATH_HINT ${ASIOSDK_PATH_HINT} ${f}) | |
| 19 endif() | |
| 20 endforeach() | |
| 21 | |
| 22 find_path(ASIOSDK_ROOT_DIR | |
| 23 common/asio.h | |
| 24 HINTS | |
| 25 ${ASIOSDK_PATH_HINT} | |
| 26 ) | |
| 27 | |
| 28 find_path(ASIOSDK_INCLUDE_DIR | |
| 29 asio.h | |
| 30 PATHS | |
| 31 ${ASIOSDK_ROOT_DIR}/common | |
| 32 ) | |
| 33 | |
| 34 # handle the QUIETLY and REQUIRED arguments and set ASIOSDK_FOUND to TRUE if | |
| 35 # all listed variables are TRUE | |
| 36 INCLUDE(FindPackageHandleStandardArgs) | |
| 37 FIND_PACKAGE_HANDLE_STANDARD_ARGS(ASIOSDK DEFAULT_MSG ASIOSDK_ROOT_DIR ASIOSDK_INCLUDE_DIR) | |
| 38 | |
| 39 MARK_AS_ADVANCED( | |
| 40 ASIOSDK_ROOT_DIR ASIOSDK_INCLUDE_DIR | |
| 41 ) |
