Commit faa7a0cd authored by Mike Kremer's avatar Mike Kremer

CMake now generates QtHelp files out of html folders within a plugin's Documentation folder.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@9397 383ad7c9-94d9-4d36-a494-682f7c89f535
parent b30b9e29
......@@ -253,6 +253,19 @@ function (_build_openflipper_plugin plugin)
endif()
# Copy the html folder
acg_copy_after_build (${plugin}-doc "${CMAKE_CURRENT_SOURCE_DIR}/Documentation/html" "${plugin_doc_dir}/html")
generate_qhp_file("${CMAKE_CURRENT_SOURCE_DIR}/Documentation/html" "Plugin-${plugin}")
if(WIN32)
add_custom_command(TARGET ${plugin}-doc POST_BUILD
COMMAND ${QT_BINARY_DIR}/qhelpgenerator.exe
ARGS ${CMAKE_CURRENT_SOURCE_DIR}/Documentation/html/Plugin-${plugin}.qhp)
else()
add_custom_command(TARGET ${plugin}-doc POST_BUILD
COMMAND ${QT_BINARY_DIR}/qhelpgenerator
ARGS ${CMAKE_CURRENT_SOURCE_DIR}/Documentation/html/Plugin-${plugin}.qhp)
endif()
add_custom_command(TARGET ${plugin}-doc POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${CMAKE_CURRENT_SOURCE_DIR}/Documentation/html/Plugin-${plugin}.qch" "${CMAKE_BINARY_DIR}/Build/${ACG_PROJECT_DATADIR}/Help/Plugin-${plugin}.qch"
)
else (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/Documentation/doxy.config.in)
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/Documentation/CMakeLists.txt)
# Create directories in order to avoid doxygen warnings
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment