Revisión | 93c365dd5e1615576a28b6402566707a116a1088 (tree) |
---|---|
Tiempo | 2010-01-13 06:41:18 |
Autor | nogu <nogu@user...> |
Commiter | nogu |
Add BUILD_DOCUMENTATION option
@@ -15,3 +15,6 @@ if (BUILD_TESTING) | ||
15 | 15 | add_subdirectory(tests) |
16 | 16 | endif (BUILD_TESTING) |
17 | 17 | |
18 | +if (BUILD_DOCUMENTATION) | |
19 | + add_subdirectory(doc) | |
20 | +endif (BUILD_DOCUMENTATION) |
@@ -0,0 +1 @@ | ||
1 | +add_subdirectory(handbook) |
@@ -0,0 +1,9 @@ | ||
1 | +if (NOT DEFINED XSL_INSTALL_FILE) | |
2 | + message(FATAL_ERROR "No xsl file specified") | |
3 | +endif (NOT DEFINED XSL_INSTALL_FILE) | |
4 | + | |
5 | +find_program(XSLTPROC_EXECUTABLE NAMES xsltproc PATHS /usr/bin /usr/local/bin) | |
6 | +if (NOT XSLTPROC_EXECUTABLE) | |
7 | + message(FATAL_ERROR "Could NOT found xsltproc") | |
8 | +endif (NOT XSLTPROC_EXECUTABLE) | |
9 | +add_subdirectory(ja) |
@@ -0,0 +1,3 @@ | ||
1 | +add_custom_target(ja ALL COMMAND ${XSLTPROC_EXECUTABLE} | |
2 | + -o ${CMAKE_CURRENT_BINARY_DIR}/ --xinclude ${XSL_INSTALL_FILE} | |
3 | + ${CMAKE_CURRENT_SOURCE_DIR}/index.xml) |