mirror of https://git.tukaani.org/xz.git
CMake: Add XZ_DOC
This commit is contained in:
parent
188143a50a
commit
d274a2bc00
|
@ -2162,27 +2162,30 @@ if(UNIX)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
install(DIRECTORY doc/examples
|
option(XZ_DOC "Install basic documention, examples, and license files" ON)
|
||||||
DESTINATION "${CMAKE_INSTALL_DOCDIR}"
|
if(XZ_DOC)
|
||||||
COMPONENT liblzma_Documentation)
|
install(DIRECTORY doc/examples
|
||||||
|
DESTINATION "${CMAKE_INSTALL_DOCDIR}"
|
||||||
|
COMPONENT liblzma_Documentation)
|
||||||
|
|
||||||
# GPLv2 applies to the scripts. If GNU getopt_long is used then
|
# GPLv2 applies to the scripts. If GNU getopt_long is used then
|
||||||
# LGPLv2.1 applies to the command line tools but, using the
|
# LGPLv2.1 applies to the command line tools but, using the
|
||||||
# section 3 of LGPLv2.1, GNU getopt_long can be handled as GPLv2 too.
|
# section 3 of LGPLv2.1, GNU getopt_long can be handled as GPLv2 too.
|
||||||
# Thus GPLv2 should be enough here.
|
# Thus GPLv2 should be enough here.
|
||||||
install(FILES AUTHORS
|
install(FILES AUTHORS
|
||||||
COPYING
|
COPYING
|
||||||
COPYING.0BSD
|
COPYING.0BSD
|
||||||
COPYING.GPLv2
|
COPYING.GPLv2
|
||||||
NEWS
|
NEWS
|
||||||
README
|
README
|
||||||
THANKS
|
THANKS
|
||||||
doc/faq.txt
|
doc/faq.txt
|
||||||
doc/history.txt
|
doc/history.txt
|
||||||
doc/lzma-file-format.txt
|
doc/lzma-file-format.txt
|
||||||
doc/xz-file-format.txt
|
doc/xz-file-format.txt
|
||||||
DESTINATION "${CMAKE_INSTALL_DOCDIR}"
|
DESTINATION "${CMAKE_INSTALL_DOCDIR}"
|
||||||
COMPONENT Documentation)
|
COMPONENT Documentation)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
||||||
#############################################################################
|
#############################################################################
|
||||||
|
|
Loading…
Reference in New Issue