Mercurial > hg > sv-dependency-builds
comparison src/portaudio_20140130/cmake_support/FindASIOSDK.cmake @ 124:e3d5853d5918
Current stable PortAudio source
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Tue, 18 Oct 2016 13:11:05 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
123:0cef3a1bd1ae | 124:e3d5853d5918 |
---|---|
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 ) |