Debian Codegraph @

cmake/tribits/core/utils/AppendGlob.cmake

raw
1 # @HEADER
2 # *****************************************************************************
3 # TriBITS: Tribal Build, Integrate, and Test System
4 #
5 # Copyright 2013-2016 NTESS and the TriBITS contributors.
6 # SPDX-License-Identifier: BSD-3-Clause
7 # *****************************************************************************
8 # @HEADER
9
10 include(AppendSet)
11
12
13 # @MACRO: append_glob()
14 #
15 # Utility macro that does a ``file(GLOB ...)`` and appends to an existing list
16 # (removes boiler-plate code).
17 #
18 # Usage::
19 #
20 # append_glob(<fileListVar> <glob0> <glob1> ...)
21 #
22 # On output, ``<fileListVar>`` will have the list of glob files appended.
23 #
24 macro(append_glob VAR)
25 file(GLOB LOCAL_TMP_VAR ${ARGN})
26 append_set(${VAR} ${LOCAL_TMP_VAR})
27 endmacro()