Commit 086ec6c8 authored by Mike Kremer's avatar Mike Kremer

Changed documentation target name from plugin-doc to doc-plugin.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@9669 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 19f32edd
......@@ -233,15 +233,15 @@ function (_build_openflipper_plugin plugin)
)
# Add documentation target
add_custom_target(${plugin}-doc COMMENT "Building documentation for plugin ${plugin}" VERBATIM)
add_custom_target(doc-${plugin} COMMENT "Building documentation for plugin ${plugin}" VERBATIM)
# make doc builds this plugin's documentation as well
add_dependencies(doc ${plugin}-doc)
add_dependencies(doc doc-${plugin})
set(plugin_doc_dir "${CMAKE_BINARY_DIR}/Build/${ACG_PROJECT_DATADIR}/Doc/Plugin-${plugin}")
# Target for plugin documentation
if(TARGET ${plugin}-doc)
if(TARGET doc-${plugin})
# Add plugin documentation
if(IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/Documentation)
# Test if html folder exists. If so, just copy it and ignore
......@@ -252,18 +252,18 @@ function (_build_openflipper_plugin plugin)
file(MAKE_DIRECTORY ${plugin_doc_dir})
endif()
# Copy the html folder
acg_copy_after_build (${plugin}-doc "${CMAKE_CURRENT_SOURCE_DIR}/Documentation/html" "${plugin_doc_dir}/html")
acg_copy_after_build (doc-${plugin} "${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
add_custom_command(TARGET doc-${plugin} 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
add_custom_command(TARGET doc-${plugin} 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
add_custom_command(TARGET doc-${plugin} 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)
......@@ -277,7 +277,7 @@ function (_build_openflipper_plugin plugin)
# Add documentation sources to build tree
add_subdirectory(Documentation)
# Copy qch file to OpenFlipper's Help dir
acg_copy_after_build (${plugin}-doc "${plugin_doc_dir}/qthelp" "${CMAKE_BINARY_DIR}/Build/${ACG_PROJECT_DATADIR}/Help/")
acg_copy_after_build (doc-${plugin} "${plugin_doc_dir}/qthelp" "${CMAKE_BINARY_DIR}/Build/${ACG_PROJECT_DATADIR}/Help/")
endif()
endif()
endif() # documentation dir exists
......@@ -423,4 +423,4 @@ macro (openflipper_plugin)
if (NOT DISABLE_PLUGIN_${_PLUGIN})
_build_openflipper_plugin (${_plugin} ${ARGN})
endif ()
endmacro ()
\ No newline at end of file
endmacro ()
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