Nicer formatting for CMakeLists.txt and add some comments to polyvox.qhcp.in.
This commit is contained in:
@ -28,10 +28,20 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/PolyVoxConfig.cmake DESTINATION ${CONF
|
|||||||
if(DOXYGEN_FOUND AND QT_QCOLLECTIONGENERATOR_EXECUTABLE)
|
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}/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}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)
|
||||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/polyvox.qhcp.in ${CMAKE_CURRENT_BINARY_DIR}/doc/html/polyvox.qhcp)
|
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" VERBATIM)
|
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
|
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()
|
endif()
|
||||||
|
|
||||||
#add_subdirectory(bindings)
|
#add_subdirectory(bindings)
|
||||||
|
@ -1,18 +1,22 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?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">
|
<QHelpCollectionProject version="1.0">
|
||||||
<assistant>
|
<assistant>
|
||||||
<title>PolyVox Documentation</title>
|
<title>PolyVox Documentation</title>
|
||||||
<homePage>qthelp://org.thermite3d.polyvox/doc/index.html</homePage>
|
<homePage>qthelp://org.thermite3d.polyvox/doc/index.html</homePage>
|
||||||
<startPage>qthelp://org.thermite3d.polyvox/doc/index.html</startPage>
|
<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>
|
<enableDocumentationManager>false</enableDocumentationManager>
|
||||||
</assistant>
|
</assistant>
|
||||||
<docFiles>
|
<docFiles>
|
||||||
|
<!-- This section says that polyvox.qch will be created from index.qhp when qcollectiongenerator is run -->
|
||||||
<generate>
|
<generate>
|
||||||
<file>
|
<file>
|
||||||
<input>index.qhp</input>
|
<input>index.qhp</input>
|
||||||
<output>polyvox.qch</output>
|
<output>polyvox.qch</output>
|
||||||
</file>
|
</file>
|
||||||
</generate>
|
</generate>
|
||||||
|
<!-- We then add the Qt Compressed Help file to the collection -->
|
||||||
<register>
|
<register>
|
||||||
<file>polyvox.qch</file>
|
<file>polyvox.qch</file>
|
||||||
</register>
|
</register>
|
||||||
|
Reference in New Issue
Block a user