1 # mitkFunctionConvertXPSchema(INPUT plugin.xml ...
2 # OUTPUT_DIR output_dir
3 # TARGET_NAME target_name
5 # [WORKING_DIR working_dir]
18 set(_macro_multiparams
23 cmake_parse_arguments(_SCHEMA
"${_macro_options}" "${_macro_params}" "${_macro_multiparams}" ${ARGN})
26 foreach(_file ${_SCHEMA_INPUT})
27 set(XP_ANT_TASKS
"${XP_ANT_TASKS}
28 <pde.convertSchemaToHTML manifest=\"${_file}\" destination=\"\${dest}\" />"
32 set(XP_DOC_DESTINATION "${_SCHEMA_OUTPUT_DIR}
")
34 if(NOT _SCHEMA_WORKING_DIR)
35 set(_SCHEMA_WORKING_DIR ${CMAKE_CURRENT_BINARY_DIR})
38 configure_file("${CMAKE_CURRENT_LIST_DIR}/buildExtPointDoc.xml.in
"
39 "${_SCHEMA_WORKING_DIR}/buildExtPointDoc.xml
" @ONLY)
41 add_custom_target(${_SCHEMA_TARGET_NAME}
42 ant -f ${_SCHEMA_WORKING_DIR}/buildExtPointDoc.xml
43 DEPENDS ${_SCHEMA_DEPENDS}
44 WORKING_DIRECTORY ${_SCHEMA_WORKING_DIR}
mitkFunctionConvertXPSchema()