set(DBUS_XML_DOCS_ENABLED 1)
set(MEINPROC4_EXECUTABLE 0)
MESSAGE(STATUS "xmlto docbook generator found")
+ set(STYLESHEET_MAN "${DOCBOOKXSL_DIR}/manpages/docbook.xsl")
+ set(STYLESHEET_HTML "${DOCBOOKXSL_DIR}/html/docbook.xsl")
+
elseif (MEINPROC4_EXECUTABLE)
set(DOCBOOK_GENERATOR_NAME "meinproc4" PARENT_SCOPE)
set(DBUS_XML_DOCS_ENABLED 1)
if(WIN32)
get_filename_component(_a ${MEINPROC4_EXECUTABLE} PATH)
get_filename_component(_meinproc_install_path ${_a} PATH)
+ set(STYLESHEET_HTML "${_meinproc_install_path}/share/apps/ksgmltools2/docbook/xsl/html/docbook.xsl")
else(WIN32)
- set(_meinproc_install_path ${CMAKE_INSTALL_PREFIX})
+ set(STYLESHEET_HTML file:///usr/share/kde4/apps/ksgmltools2/customization/kde-nochunk.xsl)
endif(WIN32)
- set(STYLESHEET "${_meinproc_install_path}/share/apps/ksgmltools2/docbook/xsl/html/docbook.xsl")
endif ()
if (DBUS_ENABLE_XML_DOCS)
if (${_format} STREQUAL "man")
string(REPLACE ".xml" "" _outname ${_name})
- set(STYLESHEET "${DOCBOOKXSL_DIR}/manpages/docbook.xsl")
+ set(STYLESHEET ${STYLESHEET_MAN})
else()
string(REPLACE ".xml" ".html" _outname ${_name})
- set(STYLESHEET "${DOCBOOKXSL_DIR}/html/docbook.xsl")
+ set(STYLESHEET ${STYLESHEET_HTML})
endif ()
set(_outfile ${CMAKE_CURRENT_BINARY_DIR}/${_outname})