CMakeLists.txt 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. ################################################################################
  2. # HPCC SYSTEMS software Copyright (C) 2015 HPCC Systems(r).
  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. IF(MAKE_DOCS)
  17. SET(HELP_DEPENDENCIES)
  18. GET_PROPERTY(Current_Targets GLOBAL PROPERTY DOC_TARGETS)
  19. FOREACH(T ${Current_Targets})
  20. IF("${T}" MATCHES ".*_html")
  21. LIST(APPEND HELP_DEPENDENCIES ${T})
  22. ENDIF()
  23. ENDFOREACH()
  24. SET(PORTAL_HTML_ZIP "portal_html_zip")
  25. ADD_CUSTOM_TARGET(${PORTAL_HTML_ZIP} ALL
  26. COMMAND zip -r "portal_html.zip" ${PORTAL_HTML_DIR}
  27. WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/${CMAKE_BUILD_TYPE}/
  28. DEPENDS ${HELP_DEPENDENCIES}
  29. )
  30. set_property(GLOBAL APPEND PROPERTY DOC_TARGETS ${PORTAL_HTML_ZIP})
  31. ENDIF(MAKE_DOCS)