blob: a142824c2dc83d7a9a4a17642bd1b3cb9e988e27 [file] [log] [blame]
Tom Finegandd6d0572017-03-01 19:01:23 -08001##
2## Copyright (c) 2017, Alliance for Open Media. All rights reserved
3##
4## This source code is subject to the terms of the BSD 2 Clause License and
5## the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
6## was not distributed with this source code in the LICENSE file, you can
7## obtain it at www.aomedia.org/license/software. If the Alliance for Open
8## Media Patent License 1.0 was not distributed with this source code in the
9## PATENTS file, you can obtain it at www.aomedia.org/license/patent.
10##
Tom Finegan17ccaec2017-05-25 17:47:42 -070011if (NOT AOM_AOM_MEM_AOM_MEM_CMAKE_)
12set(AOM_AOM_MEM_AOM_MEM_CMAKE_ 1)
13
Tom Finegandd6d0572017-03-01 19:01:23 -080014set(AOM_MEM_SOURCES
15 "${AOM_ROOT}/aom_mem/aom_mem.c"
16 "${AOM_ROOT}/aom_mem/aom_mem.h"
17 "${AOM_ROOT}/aom_mem/include/aom_mem_intrnl.h")
18
19# Creates the aom_mem build target and makes libaom depend on it. The libaom
20# target must exist before this function is called.
21function (setup_aom_mem_targets)
Tom Finegan78516fc2017-06-20 10:46:26 -070022 add_library(aom_mem OBJECT ${AOM_MEM_SOURCES})
Tom Finegandd6d0572017-03-01 19:01:23 -080023 set(AOM_LIB_TARGETS ${AOM_LIB_TARGETS} aom_mem PARENT_SCOPE)
Tom Finegan78516fc2017-06-20 10:46:26 -070024 target_sources(aom PRIVATE $<TARGET_OBJECTS:aom_mem>)
Tom Finegandd6d0572017-03-01 19:01:23 -080025endfunction ()
Tom Finegan17ccaec2017-05-25 17:47:42 -070026
27endif () # AOM_AOM_MEM_AOM_MEM_CMAKE_