CMakeLists.txt 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. if ( "${HPCC_MATURITY}" STREQUAL "release" )
  29. set (DOC_VERSION "${DOC_VERSION}-${HPCC_SEQUENCE}")
  30. else()
  31. set (DOC_VERSION "${DOC_VERSION}-${HPCC_MATURITY}${HPCC_SEQUENCE}")
  32. endif()
  33. # Build image file list to add to source watch.
  34. file(GLOB_RECURSE DOC_IMAGES_LIST images/*)
  35. # Required directories to add.
  36. add_subdirectory(common)
  37. add_subdirectory(BuildTools)
  38. add_subdirectory(resources)
  39. # Doc dirs to include.
  40. add_subdirectory(ECLLanguageReference)
  41. add_subdirectory(ECLProgrammersGuide)
  42. #add_subdirectory(ECLReference)
  43. add_subdirectory(ECLStandardLibraryReference)
  44. add_subdirectory(HPCCClientTools)
  45. add_subdirectory(HPCCCertify)
  46. add_subdirectory(HPCCDataHandling)
  47. add_subdirectory(HPCCDataTutorial)
  48. add_subdirectory(HPCCMonitoring)
  49. add_subdirectory(HPCCSystemAdmin)
  50. add_subdirectory(IMDB)
  51. add_subdirectory(InstantCloud)
  52. add_subdirectory(Installing_and_RunningTheHPCCPlatform)
  53. add_subdirectory(RDDERef)
  54. add_subdirectory(RunningHPCCinaVirtualMachine)
  55. add_subdirectory(UsingConfigManager)
  56. add_subdirectory(ECLPlayground)
  57. add_subdirectory(ECLPluginForEclipse)
  58. add_subdirectory(ECLScheduler)
  59. add_subdirectory(ECLWatch)
  60. #WIP - Docs
  61. #add_subdirectory(RuningHPCCinAmazonWebServicesEC2)
  62. GET_PROPERTY(_targets GLOBAL PROPERTY DOC_TARGETS)
  63. add_custom_target(docs ALL DEPENDS ${_targets})