Nicer formatting for CMakeLists.txt and add some comments to polyvox.qhcp.in.

This commit is contained in:
Matt Williams
2010-07-01 14:27:31 +00:00
parent 2da20ff2ef
commit 1fac2a36a0
2 changed files with 17 additions and 3 deletions

View File

@ -28,10 +28,20 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/PolyVoxConfig.cmake DESTINATION ${CONF
if(DOXYGEN_FOUND AND QT_QCOLLECTIONGENERATOR_EXECUTABLE)
#configure_file(${CMAKE_CURRENT_SOURCE_DIR}/polyvox.css ${CMAKE_CURRENT_BINARY_DIR}/polyvox.css)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/polyvox.qhcp.in ${CMAKE_CURRENT_BINARY_DIR}/doc/html/polyvox.qhcp)
add_custom_target(doc COMMAND ${DOXYGEN_EXECUTABLE} COMMAND ${QT_QCOLLECTIONGENERATOR_EXECUTABLE} doc/html/polyvox.qhcp -o doc/html/polyvox.qhc WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building documentation" VERBATIM)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/polyvox.qhcp.in ${CMAKE_CURRENT_BINARY_DIR}/doc/html/polyvox.qhcp) #The QtHelp config file
add_custom_target(doc
COMMAND ${DOXYGEN_EXECUTABLE}
COMMAND ${QT_QCOLLECTIONGENERATOR_EXECUTABLE} doc/html/polyvox.qhcp -o doc/html/polyvox.qhc
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Building documentation"
)
set_target_properties(doc PROPERTIES PROJECT_LABEL "Documentation") #Set label seen in IDE
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/doc/html/polyvox.qhc ${CMAKE_CURRENT_BINARY_DIR}/doc/html/polyvox.qch DESTINATION ${PolyVox_DOC_INSTALL_DIR}/qthelp COMPONENT development)
install(FILES
${CMAKE_CURRENT_BINARY_DIR}/doc/html/polyvox.qhc
${CMAKE_CURRENT_BINARY_DIR}/doc/html/polyvox.qch
DESTINATION ${PolyVox_DOC_INSTALL_DIR}/qthelp
COMPONENT development
)
endif()
#add_subdirectory(bindings)

View File

@ -1,18 +1,22 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- This file defines a collection of Qt Help files as well as some amount of the build process -->
<QHelpCollectionProject version="1.0">
<assistant>
<title>PolyVox Documentation</title>
<homePage>qthelp://org.thermite3d.polyvox/doc/index.html</homePage>
<startPage>qthelp://org.thermite3d.polyvox/doc/index.html</startPage>
<!-- Disable the documentation manager so that there's no option to add more docs to this shell instance -->
<enableDocumentationManager>false</enableDocumentationManager>
</assistant>
<docFiles>
<!-- This section says that polyvox.qch will be created from index.qhp when qcollectiongenerator is run -->
<generate>
<file>
<input>index.qhp</input>
<output>polyvox.qch</output>
</file>
</generate>
<!-- We then add the Qt Compressed Help file to the collection -->
<register>
<file>polyvox.qch</file>
</register>