Mercurial > hg > sv-dependency-builds
comparison src/portaudio/cmake_support/FindASIOSDK.cmake @ 4:e13257ea84a4
Add bzip2, zlib, liblo, portaudio sources
author | Chris Cannam |
---|---|
date | Wed, 20 Mar 2013 13:59:52 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
3:6c505a35919a | 4:e13257ea84a4 |
---|---|
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 ) |