if(WITH_XC_AUTOTYPE)
  if(UNIX AND NOT APPLE)
    find_package(X11)
    find_package(Qt5X11Extras 5.2)
    if(PRINT_SUMMARY)
      add_feature_info(libXi X11_Xi_FOUND "The X11 Xi Protocol library is required for auto-type")
      add_feature_info(libXtst X11_XTest_FOUND "The X11 XTEST Protocol library is required for auto-type")
      add_feature_info(Qt5X11Extras Qt5X11Extras_FOUND "The Qt5X11Extras library is required for auto-type")
    endif()

    if(X11_FOUND AND X11_Xi_FOUND AND X11_XTest_FOUND AND Qt5X11Extras_FOUND)
      add_subdirectory(xcb)
    endif()
  elseif(APPLE)
    add_subdirectory(mac)
  elseif(WIN32)
    add_subdirectory(windows)
  endif()

  if(WITH_TESTS)
    add_subdirectory(test)
  endif()
endif()
