blob: 09bb8354dd3e46e3d7f8ef9654bd39d1cd1a8465 [file] [log] [blame]
# Copyright 2019 Joe Drago. All rights reserved.
# SPDX-License-Identifier: BSD-2-Clause
if(AVIF_CODEC_AOM AND AVIF_BUILD_AOM)
if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/aom)
message(FATAL_ERROR "libavif: AVIF_BUILD_AOM is enabled, but ext/aom dir is missing. See ext/aom.sh for information.")
endif()
set(ENABLE_DOCS 0)
set(ENABLE_EXAMPLES 0)
set(ENABLE_TESTDATA 0)
set(ENABLE_TESTS 0)
set(ENABLE_TOOLS 0)
add_subdirectory(aom EXCLUDE_FROM_ALL)
endif()