hadamard: Add 4x4 test.
[aom.git] / common / ivf_dec.cmake
blobfedeea7940259d98530a66a90ef4888184ddc74a
2 # Copyright (c) 2021, Alliance for Open Media. All rights reserved
4 # This source code is subject to the terms of the BSD 2 Clause License and the
5 # Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License was
6 # not distributed with this source code in the LICENSE file, you can obtain it
7 # at www.aomedia.org/license/software. If the Alliance for Open Media Patent
8 # License 1.0 was not distributed with this source code in the PATENTS file, you
9 # can obtain it at www.aomedia.org/license/patent.
11 if(AOM_COMMON_IVF_DEC_CMAKE_)
12   return()
13 endif() # AOM_COMMON_AOM_COMMON_CMAKE_
14 set(AOM_COMMON_IVF_DEC_CMAKE_ 1)
16 list(APPEND IVF_DEC_SOURCES "${AOM_ROOT}/common/ivfdec.c"
17             "${AOM_ROOT}/common/ivfdec.h")
19 # Creates the aom_common build target and makes libaom depend on it. The libaom
20 # target must exist before this function is called.
21 function(setup_ivf_dec_targets)
22   add_library(ivf_dec OBJECT ${IVF_DEC_SOURCES})
23   set(AOM_LIB_TARGETS ${AOM_LIB_TARGETS} ivf_dec PARENT_SCOPE)
24   target_sources(aom PRIVATE $<TARGET_OBJECTS:ivf_dec>)
25   if(BUILD_SHARED_LIBS)
26     target_sources(aom_static PRIVATE $<TARGET_OBJECTS:ivf_dec>)
27   endif()
28 endfunction()