Chris@55: # $Id: $ Chris@55: # Chris@55: # - Try to find the ASIO SDK Chris@55: # Once done this will define Chris@55: # Chris@55: # ASIOSDK_FOUND - system has ASIO SDK Chris@55: # ASIOSDK_ROOT_DIR - path to the ASIO SDK base directory Chris@55: # ASIOSDK_INCLUDE_DIR - the ASIO SDK include directory Chris@55: Chris@55: if(WIN32) Chris@55: else(WIN32) Chris@55: message(FATAL_ERROR "FindASIOSDK.cmake: Unsupported platform ${CMAKE_SYSTEM_NAME}" ) Chris@55: endif(WIN32) Chris@55: Chris@55: file(GLOB results "${CMAKE_CURRENT_SOURCE_DIR}/../as*") Chris@55: foreach(f ${results}) Chris@55: if(IS_DIRECTORY ${f}) Chris@55: set(ASIOSDK_PATH_HINT ${ASIOSDK_PATH_HINT} ${f}) Chris@55: endif() Chris@55: endforeach() Chris@55: Chris@55: find_path(ASIOSDK_ROOT_DIR Chris@55: common/asio.h Chris@55: HINTS Chris@55: ${ASIOSDK_PATH_HINT} Chris@55: ) Chris@55: Chris@55: find_path(ASIOSDK_INCLUDE_DIR Chris@55: asio.h Chris@55: PATHS Chris@55: ${ASIOSDK_ROOT_DIR}/common Chris@55: ) Chris@55: Chris@55: # handle the QUIETLY and REQUIRED arguments and set ASIOSDK_FOUND to TRUE if Chris@55: # all listed variables are TRUE Chris@55: INCLUDE(FindPackageHandleStandardArgs) Chris@55: FIND_PACKAGE_HANDLE_STANDARD_ARGS(ASIOSDK DEFAULT_MSG ASIOSDK_ROOT_DIR ASIOSDK_INCLUDE_DIR) Chris@55: Chris@55: MARK_AS_ADVANCED( Chris@55: ASIOSDK_ROOT_DIR ASIOSDK_INCLUDE_DIR Chris@55: )