~zorba-coders/zorba/bug-1189790

« back to all changes in this revision

Viewing changes to cmake_modules/ZorbaModule.cmake

  • Committer: Paul J. Lucas
  • Date: 2013-06-25 16:54:34 UTC
  • mfrom: (11502.1.37 zorba)
  • Revision ID: paul@lucasmail.org-20130625165434-b1dvqff1e7o87x5l
MergeĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
948
948
#if the external module is not compiled in zorba, it will set the variables to point to executables and files in the installed zorba
949
949
#if you want to use the files from your local zorba build, you have to set the variables manually
950
950
#the variables are:
951
 
# ZORBA_XQDOC_XML_XQ  - points to file xqdoc-xml.xq
952
951
# ZORBA_XQDOC_HTML_XQ - points to file xqdoc-html.xq
953
952
# ZORBA_XQDOC_OUTPUT_DIR - points to the output dir for xml and html
954
953
# ZORBA_XHTML_REQUISITES_PATH - points to the dir containing the html requisites (images, lib, styles, templates dirs)
956
955
MACRO (ADD_XQDOC_TARGETS)
957
956
  MESSAGE(STATUS "ADD_XQDOC_TARGETS")
958
957
 
959
 
  SET(ZORBA_XQDOC_XML_XQ
960
 
    ${CMAKE_BINARY_DIR}/xqdoc/generator/xqdoc-xml.xq
961
 
      CACHE PATH
962
 
      "The XQDoc XML generator for external modules.")
963
958
  SET(ZORBA_XQDOC_HTML_XQ
964
959
    ${CMAKE_BINARY_DIR}/xqdoc/generator/xqdoc-html.xq
965
960
      CACHE PATH
966
961
      "The XQDoc XHTML generator for external modules.")
967
962
 
968
 
  ADD_CUSTOM_TARGET(xqdoc-xml
969
 
    ${Zorba_EXE}
970
 
      --omit-xml-declaration
971
 
      -f
972
 
      -q "${ZORBA_XQDOC_XML_XQ}"
973
 
      -e "\"zorbaManifestPath:=${zorba_manifest_file}\""
974
 
      -e "\"xqdocBuildPath:=${CMAKE_BINARY_DIR}/doc/zorba/xqdoc\""
975
 
      DEPENDS ${LOCAL_MODULES} ${zorba_manifest_file}
976
 
      COMMENT "Building XQDoc XML documentation ..."
977
 
  )
978
 
  MESSAGE(STATUS "  added target xqdoc-xml")
979
 
  ADD_DEPENDENCIES(xqdoc-xml zorbacmd check_core_uris)
980
 
 
981
 
  SET_TARGET_PROPERTIES (xqdoc-xml PROPERTIES
982
 
    EXCLUDE_FROM_DEFAULT_BUILD 1
983
 
    FOLDER "Docs"
984
 
  )
985
 
 
986
963
  SET(ZORBA_XHTML_REQUISITES_PATH
987
964
      ${CMAKE_SOURCE_DIR}/doc/zorba/xqdoc
988
965
      CACHE PATH
1009
986
      ${Zorba_EXE}
1010
987
      --omit-xml-declaration
1011
988
      -f
1012
 
      -q "${CMAKE_SOURCE_DIR}/test/rbkt/Queries/zorba/xqdoc/make_xqdoc.xqi"
 
989
      -q "${ZORBA_XQDOC_HTML_XQ}"
1013
990
      -e "zorbaManifestPath:=${zorba_manifest_file}"
1014
991
      -e "xhtmlRequisitesPath:=${ZORBA_XHTML_REQUISITES_PATH}"
1015
992
      -e "xqdocBuildPath:=${CMAKE_BINARY_DIR}/test/rbkt/QueryResults/zorba/xqdoc"