Merge branch 'release-4.0'
[kiteware-cmake.git] / Utilities / CMakeLists.txt
blob5e6ef0a3615f2bdc4059cb8ab7e34accb1d4e345
1 # Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
2 # file Copyright.txt or https://cmake.org/licensing for details.
4 subdirs(Doxygen)
6 if (CMake_DOC_ARTIFACT_PREFIX)
7   # Undocumented option for CI usage to reuse already
8   # built documentation.
9   install(DIRECTORY ${CMake_DOC_ARTIFACT_PREFIX}/
10           DESTINATION . USE_SOURCE_PERMISSIONS)
11 else()
12   # Normal documentation build.
13   add_subdirectory(Sphinx)
14 endif()
16 if(CMake_BUILD_WIX_CUSTOM_ACTION)
17   add_subdirectory(Release/WiX)
18 endif()
20 # Make sure generated files use the same clang-tidy checks (none).
21 configure_file(.clang-tidy .clang-tidy COPYONLY)