2016-09-27 22:01:08 +03:00
|
|
|
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
# file Copyright.txt or https://cmake.org/licensing for details.
|
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
subdirs(Doxygen KWStyle)
|
2013-09-18 00:08:05 +04:00
|
|
|
|
2014-01-28 19:41:56 +04:00
|
|
|
if(CMAKE_DOC_TARBALL)
|
|
|
|
# Undocumented option to extract and install pre-built documentation.
|
|
|
|
# This is intended for use during packaging of CMake itself.
|
|
|
|
if(CMAKE_DOC_TARBALL MATCHES "/([^/]+)\\.tar\\.gz$")
|
|
|
|
set(dir "${CMAKE_MATCH_1}")
|
|
|
|
else()
|
|
|
|
message(FATAL_ERROR "CMAKE_DOC_TARBALL must end in .tar.gz")
|
|
|
|
endif()
|
|
|
|
add_custom_command(
|
|
|
|
OUTPUT ${dir}.stamp
|
|
|
|
COMMAND cmake -E remove_directory ${dir}
|
|
|
|
COMMAND cmake -E tar xf ${CMAKE_DOC_TARBALL}
|
|
|
|
COMMAND cmake -E touch ${dir}.stamp
|
|
|
|
DEPENDS ${CMAKE_DOC_TARBALL}
|
|
|
|
)
|
|
|
|
add_custom_target(documentation ALL DEPENDS ${dir}.stamp)
|
|
|
|
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${dir}/
|
|
|
|
DESTINATION . USE_SOURCE_PERMISSIONS)
|
|
|
|
else()
|
|
|
|
# Normal documentation build.
|
|
|
|
add_subdirectory(Sphinx)
|
|
|
|
endif()
|
2016-02-07 22:25:56 +03:00
|
|
|
|
|
|
|
if(WIX_CUSTOM_ACTION_ENABLED)
|
|
|
|
add_subdirectory(Release/WiX)
|
|
|
|
endif()
|