# ------------------------------------------------------------------------- # Copyright (C) 2020 BMW AG # ------------------------------------------------------------------------- # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at https://mozilla.org/MPL/2.0/. # ------------------------------------------------------------------------- # Sphinx is a pip module, has to be on the path find_program(SPHINX_EXECUTABLE NAMES sphinx-build DOC "Path to sphinx-build executable") find_program(BREATHE_EXECUTABLE NAMES breathe-apidoc DOC "Path to breathe-apidoc executable") include(FindPackageHandleStandardArgs) find_package_handle_standard_args(Sphinx "Failed to find sphinx-build executable" SPHINX_EXECUTABLE BREATHE_EXECUTABLE)