zephyr/cmake/modules/doc.cmake
Torsten Rasmussen 604f705fda cmake: doc: created a doc.cmake CMake module in Zephyr CMake modules dir
Creating a doc.cmake to the new Zephyr CMake modules dir.

This removes the need for `set(NO_BOILERPLATE TRUE)` before loading the
Zephyr CMake package.

It also removes the need within the doc/CMakeLists.txt file to manually
include individual parts of the Zephyr CMake files as this is now
controlled through a single Zephyr CMake doc module.

This aligns the way a Zephyr package is sourced with other places.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2022-02-22 10:02:39 -08:00

25 lines
476 B
CMake

# SPDX-License-Identifier: Apache-2.0
#
# Copyright (c) 2021, Nordic Semiconductor ASA
# This CMake module will load all Zephyr CMake modules required for a
# documentation build.
#
# The following CMake modules will be loaded:
# - extensions
# - python
# - west
# - root
# - zephyr_module
#
# Outcome:
# The Zephyr package required for documentation build setup.
include_guard(GLOBAL)
include(extensions)
include(python)
include(west)
include(root)
include(zephyr_module)