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.
This commit is contained in:
Kimmo Varis 2010-02-01 23:42:29 +02:00
parent 5586f13c58
commit a5dd99bc8c
1 changed files with 15 additions and 2 deletions

View File

@ -1,9 +1,22 @@
# Build Docbook manual # Build Docbook manual
# Run 'make html' to build 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) IF (UNIX OR CYGWIN)
#macro XMLTO(outfiles infiles... MODES modes...) #macro XMLTO(outfiles infiles... MODES modes...)
INCLUDE("../CMake/xmlto.cmake") INCLUDE("../CMake/xmlto.cmake")
XMLTO("" "manual.docbook" MODES "html") XMLTO("" "manual.docbook" MODES ${DOC_TARGETS})
ENDIF (UNIX OR CYGWIN) ENDIF (UNIX OR CYGWIN)