if(CMAKE_VERSION GREATER_EQUAL 3.21.0)
  find_package(libcbor 0.10.2)
  find_package(libfido2 1.14.0)

  if(LIBCBOR_FOUND AND LIBFIDO2_FOUND)
    set(CHANNEL_RDPEWA ON CACHE BOOL "preload")
    set(CHANNEL_RDPEWA_CLIENT ON CACHE BOOL "preload")
  endif()
endif()

set(CMAKE_VERBOSE_MAKEFILE ON CACHE BOOL "preload")
set(CMAKE_SKIP_RPATH OFF CACHE BOOL "preload")
set(CMAKE_SKIP_INSTALL_RPATH OFF CACHE BOOL "preload")
set(WITH_PULSE ON CACHE BOOL "preload")
set(WITH_CHANNELS ON CACHE BOOL "preload")
set(WITH_AAD ON CACHE BOOL "preload")
set(WITH_CUPS ON CACHE BOOL "preload")
set(WITH_KRB5 ON CACHE BOOL "preload")
set(WITH_PCSC ON CACHE BOOL "preload")
set(WITH_FFMPEG ON CACHE BOOL "preload")
set(WITH_OPUS ON CACHE BOOL "preload")
set(WITH_DSP_FFMPEG ON CACHE BOOL "preload")
set(WITH_FREERDP_DEPRECATED_COMMANDLINE ON CACHE BOOL "preload")
set(WITH_SERVER ON CACHE BOOL "preload")
set(WITH_WAYLAND ON CACHE BOOL "preload")
set(WITH_CAIRO ON CACHE BOOL "preload")
set(WITH_URIPARSER ON CACHE BOOL "preload")
set(WINPR_UTILS_IMAGE_PNG ON CACHE BOOL "preload")
set(WINPR_UTILS_IMAGE_WEBP ON CACHE BOOL "preload")
set(WINPR_UTILS_IMAGE_JPEG ON CACHE BOOL "preload")
set(WITH_INTERNAL_RC4 ON CACHE BOOL "preload")
set(WITH_INTERNAL_MD4 ON CACHE BOOL "preload")
set(WITH_INTERNAL_MD5 ON CACHE BOOL "preload")
set(WITH_WEBVIEW ON CACHE BOOL "preload")
set(BUILD_TESTING ON CACHE BOOL "preload")
set(WITH_KEYBOARD_LAYOUT_FROM_FILE ON CACHE BOOL "preload")
set(WITH_TIMEZONE_FROM_FILE ON CACHE BOOL "preload")
set(SDL_USE_COMPILED_RESOURCES OFF CACHE BOOL "preload")
set(WITH_SDL_IMAGE_DIALOGS ON CACHE BOOL "preload")
set(WITH_CLIENT_SDL_VERSIONED ON CACHE BOOL "preload")
set(RDTK_FORCE_STATIC_BUILD ON CACHE BOOL "preload")
set(UWAC_FORCE_STATIC_BUILD ON CACHE BOOL "preload")
set(WITH_BINARY_VERSIONING ON CACHE BOOL "preload")
set(WITH_RESOURCE_VERSIONING ON CACHE BOOL "preload")
set(NO_CMAKE_PACKAGE_REGISTRY ON CACHE BOOL "preload")
set(WINPR_USE_LEGACY_RESOURCE_DIR OFF CACHE BOOL "preload")
set(WINPR_USE_VENDOR_PRODUCT_CONFIG_DIR ON CACHE BOOL "preload")
set(FREERDP_USE_VENDOR_PRODUCT_CONFIG_DIR ON CACHE BOOL "preload")
set(SAMPLE_USE_VENDOR_PRODUCT_CONFIG_DIR ON CACHE BOOL "preload")
set(SDL_USE_VENDOR_PRODUCT_CONFIG_DIR ON CACHE BOOL "preload")
set(CHANNEL_RDP2TCP ON CACHE BOOL "preload")
set(CHANNEL_RDP2TCP_CLIENT ON CACHE BOOL "preload")
set(CHANNEL_RDPECAM ON CACHE BOOL "preload")
set(CHANNEL_RDPECAM_CLIENT ON CACHE BOOL "preload")
set(CHANNEL_RDPEAR ON CACHE BOOL "preload")
set(CHANNEL_RDPEAR_CLIENT ON CACHE BOOL "preload")
set(CHANNEL_SSHAGENT ON CACHE BOOL "preload")
set(CHANNEL_SSHAGENT_CLIENT ON CACHE BOOL "preload")
