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