Debian Codegraph @

cmake/tribits/core/utils/AddSubdirectories.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
11 # @MACRO: add_subdirectories()
12 #
13 # Macro that adds a list of subdirectories all at once (removes boiler-plate
14 # code).
15 #
16 # Usage::
17 #
18 # add_subdirectories(<dir1> <dir2> ...)
19 #
20 # instead of::
21 #
22 # add_subdirectory(<dir1>)
23 # add_subdirectory(<dir2>)
24 # ...
25 #
26 macro(add_subdirectories)
27 foreach(DIR ${ARGV})
28 add_subdirectory(${DIR})
29 endforeach()
30 endmacro()