KDE/kdelibs/cmake/modules

Allen Winter winter at kde.org
Thu Jan 18 19:12:29 CET 2007


SVN commit 625018 by winterz:

A new macro for generating index.html from index.docbook using meinproc.
Doesn't seem to work yet, so I'm hoping a cmake guru will see this and help me.

I tried putting kde4_create_html_handbook(index.docbook)
in the kdepim/doc/akregator/CMakeLists.txt, but I don't
see that an index.html is being created anywhere.

CCMAIL: kde-buildsystem at kde.org



 M  +14 -0     KDE4Macros.cmake  


--- trunk/KDE/kdelibs/cmake/modules/KDE4Macros.cmake #625017:625018
@@ -223,6 +223,20 @@
 endmacro(KDE4_GET_AUTOMOC_FILES)
 
 
+macro (KDE4_CREATE_HTML_HANDBOOK)
+   # iterate over all  files
+   foreach (_current_FILE ${ARGN})
+      get_filename_component(_input ${_current_FILE} ABSOLUTE)
+      set(_doc ${CMAKE_CURRENT_BINARY_DIR}/index.html)
+      add_custom_command(OUTPUT ${_doc}
+         COMMAND ${KDE4_MEINPROC_EXECUTABLE}
+         ARGS -o ${_doc} ${_input}
+         DEPENDS ${_input}
+      )
+   endforeach (_current_FILE)
+endmacro (KDE4_CREATE_HTML_HANDBOOK)
+
+
 # only used internally by KDE4_INSTALL_ICONS
 MACRO (_KDE4_ADD_ICON_INSTALL_RULE _install_SCRIPT _install_PATH _group _orig_NAME _install_NAME)
 


More information about the Kde-buildsystem mailing list