Put the Qt Help stuff in a different folder under the build directory.

This commit is contained in:
Matt Williams 2010-07-02 18:38:43 +00:00
parent b00360d323
commit b6f64ea3f8
2 changed files with 5 additions and 5 deletions

View File

@ -40,18 +40,18 @@ if(DOXYGEN_FOUND)
#If we found qcollectiongenerator then do more processing #If we found qcollectiongenerator then do more processing
if(QT_QCOLLECTIONGENERATOR_EXECUTABLE) if(QT_QCOLLECTIONGENERATOR_EXECUTABLE)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/polyvox.qhcp.in ${CMAKE_CURRENT_BINARY_DIR}/doc/html/polyvox.qhcp) #The QtHelp config file configure_file(${CMAKE_CURRENT_SOURCE_DIR}/polyvox.qhcp.in ${CMAKE_CURRENT_BINARY_DIR}/doc/qthelp/polyvox.qhcp) #The QtHelp config file
#We attach this command to the doc target so it will be run automatically #We attach this command to the doc target so it will be run automatically
add_custom_command(TARGET doc POST_BUILD add_custom_command(TARGET doc POST_BUILD
COMMAND ${QT_QCOLLECTIONGENERATOR_EXECUTABLE} polyvox.qhcp -o polyvox.qhc COMMAND ${QT_QCOLLECTIONGENERATOR_EXECUTABLE} polyvox.qhcp -o polyvox.qhc
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doc/html WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doc/qthelp
COMMENT "Compiling API documentation to Qt Help format" COMMENT "Compiling API documentation to Qt Help format"
) )
install(FILES install(FILES
${CMAKE_CURRENT_BINARY_DIR}/doc/html/polyvox.qhc ${CMAKE_CURRENT_BINARY_DIR}/doc/qthelp/polyvox.qhc
${CMAKE_CURRENT_BINARY_DIR}/doc/html/polyvox.qch ${CMAKE_CURRENT_BINARY_DIR}/doc/qthelp/polyvox.qch
DESTINATION ${PolyVox_DOC_INSTALL_DIR}/qthelp DESTINATION ${PolyVox_DOC_INSTALL_DIR}/qthelp
COMPONENT development COMPONENT development
OPTIONAL OPTIONAL

View File

@ -13,7 +13,7 @@
<!-- This section says that polyvox.qch will be created from index.qhp when qcollectiongenerator is run --> <!-- 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>../html/index.qhp</input>
<output>polyvox.qch</output> <output>polyvox.qch</output>
</file> </file>
</generate> </generate>