From a5dd99bc8c7cdc554856fa9744522ae69085acc0 Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Mon, 1 Feb 2010 23:42:29 +0200 Subject: [PATCH] CMake - build htmlhelp manual in Cygwin. I want to build htmlhelp manual for Windows with Cygwin. This is the easiest way to create "native" manual for Windows users. --- man/CMakeLists.txt | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/man/CMakeLists.txt b/man/CMakeLists.txt index 8216fea33..3a6ff0e29 100644 --- a/man/CMakeLists.txt +++ b/man/CMakeLists.txt @@ -1,9 +1,22 @@ # Build Docbook manual # Run 'make html' to build manual -# Build manual in Linux - xmlto is not available in Windows +# Build manual in Linux/Cygwin - xmlto is not available in Windows + +SET(DOC_TARGETS "html") + +# Build also htmlhelp in Cygwin - this can be used to build +# htmlhelp manual for Windows. + +IF (CYGWIN) + SET(DOC_TARGETS + ${DOC_TARGETS} + "htmlhelp" + ) +ENDIF(CYGWIN) + IF (UNIX OR CYGWIN) #macro XMLTO(outfiles infiles... MODES modes...) INCLUDE("../CMake/xmlto.cmake") - XMLTO("" "manual.docbook" MODES "html") + XMLTO("" "manual.docbook" MODES ${DOC_TARGETS}) ENDIF (UNIX OR CYGWIN)