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