To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

The primary repository for this project is hosted at https://github.com/sonic-visualiser/sv-dependency-builds .
This repository is a read-only copy which is updated automatically every hour.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / src / portaudio_20161030_catalina_patch / cmake_support / FindASIOSDK.cmake @ 164:9fa11135915a

History | View | Annotate | Download (993 Bytes)

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
)