CMakeLists.txt 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. ################################################################################
  2. # HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. ################################################################################
  16. cmake_minimum_required(VERSION 2.8)
  17. PROJECT(docs)
  18. define_property(GLOBAL PROPERTY DOC_TARGETS BRIEF_DOCS "docs" FULL_DOCS "docs")
  19. mark_as_advanced(DOC_TARGETS)
  20. include(${CMAKE_MODULE_PATH}/docMacros.cmake)
  21. set (DOCBOOK_RESOURCES ${CMAKE_CURRENT_BINARY_DIR}/resources)
  22. set (DOCBOOK_XSL ${CMAKE_CURRENT_BINARY_DIR}/resources/docbook-xsl)
  23. set (DOC_IMAGES ${CMAKE_CURRENT_SOURCE_DIR}/)
  24. set (XML_CATALOG ${CMAKE_CURRENT_BINARY_DIR}/BuildTools/catalog.xml)
  25. set (DOC_VERSION "${HPCC_MAJOR}.${HPCC_MINOR}.${HPCC_POINT}")
  26. set (FO_XSL ${CMAKE_CURRENT_BINARY_DIR}/BuildTools/fo.xsl)
  27. set (VERSION_DIR ${CMAKE_CURRENT_BINARY_DIR}/)
  28. set (ECLIPSE_HTML_XSL ${CMAKE_CURRENT_BINARY_DIR}/BuildTools/EclipseHelp.xsl)
  29. set (ECL_REFERENCE_XML ${CMAKE_CURRENT_BINARY_DIR}/ECLReference/ECLReference.xml)
  30. set (HTML_HELP_XSL ${CMAKE_CURRENT_BINARY_DIR}/resources/docbook-xsl/htmlhelp/htmlhelp.xsl)
  31. if ( "${HPCC_MATURITY}" STREQUAL "release" )
  32. set (DOC_VERSION "${DOC_VERSION}-${HPCC_SEQUENCE}")
  33. else()
  34. set (DOC_VERSION "${DOC_VERSION}-${HPCC_MATURITY}${HPCC_SEQUENCE}")
  35. endif()
  36. set (PORTAL_HTML_DIR "${CMAKE_CURRENT_BINARY_DIR}/PortalHTML")
  37. # Build image file list to add to source watch.
  38. file(GLOB_RECURSE DOC_IMAGES_LIST images/*)
  39. # Required directories to add.
  40. add_subdirectory(common)
  41. add_subdirectory(BuildTools)
  42. add_subdirectory(resources)
  43. # Doc dirs to include.
  44. add_subdirectory(DynamicESDL)
  45. add_subdirectory(ECLLanguageReference)
  46. add_subdirectory(ECLProgrammersGuide)
  47. add_subdirectory(ECLStandardLibraryReference)
  48. add_subdirectory(ECLReference)
  49. add_subdirectory(EclipseHelp)
  50. add_subdirectory(HTMLHelp)
  51. add_subdirectory(HPCCClientTools)
  52. add_subdirectory(HPCCCertify)
  53. add_subdirectory(HPCCDataHandling)
  54. add_subdirectory(HPCCDataTutorial)
  55. add_subdirectory(HPCCMonitoring)
  56. add_subdirectory(HPCCSystemAdmin)
  57. add_subdirectory(IMDB)
  58. add_subdirectory(InstantCloud)
  59. add_subdirectory(Installing_and_RunningTheHPCCPlatform)
  60. add_subdirectory(RoxieReference)
  61. add_subdirectory(RunningHPCCinaVirtualMachine)
  62. add_subdirectory(ECLPlayground)
  63. add_subdirectory(ECLPluginForEclipse)
  64. add_subdirectory(ECLScheduler)
  65. add_subdirectory(ECLWatch)
  66. add_subdirectory(VisualizingECL)
  67. # Docs automation
  68. if (DOCS_AUTO)
  69. add_subdirectory(XMLGeneration)
  70. add_subdirectory(UsingConfigManager)
  71. endif()
  72. #WIP - Docs
  73. #add_subdirectory(RuningHPCCinAmazonWebServicesEC2)
  74. add_subdirectory(PortalHTML)
  75. GET_PROPERTY(_targets GLOBAL PROPERTY DOC_TARGETS)
  76. add_custom_target(docs ALL DEPENDS ${_targets})