CMakeLists.txt 1.08 KB
Newer Older
Jan Möbius's avatar
Jan Möbius committed
1
2
3
4
include (ACGDoxygen)

IF (DOXYGEN_FOUND)

5
6
7
8
#  if (TARGET doc)
#    acg_copy_after_build (doc "${CMAKE_CURRENT_SOURCE_DIR}/html" "${CMAKE_BINARY_DIR}/Build/${ACG_PROJECT_DATADIR}/Doc/DeveloperHtml")
#  endif ()

Jan Möbius's avatar
Jan Möbius committed
9
  # use the doxyfile here and generate a documentation target
10
  acg_create_doc_target( doc-DeveloperHelp )
Jan Möbius's avatar
Jan Möbius committed
11
12


13
  # copy acg stylesheet data after build
14
15
  if (TARGET doc-DeveloperHelp )
    acg_copy_after_build (doc-DeveloperHelp "${CMAKE_CURRENT_SOURCE_DIR}/../ACGStyleHtml" "${CMAKE_BINARY_DIR}/Build/${ACG_PROJECT_DATADIR}/Doc/DeveloperHTML/html") 
Jan Möbius's avatar
Jan Möbius committed
16
17
18
  endif ()

  # Add a documentation install target
19
  add_custom_target(doc-Developer-html-install COMMENT "Installing Developer HTML Documentation" VERBATIM )
Jan Möbius's avatar
Jan Möbius committed
20
21

  # Build Documentation before installing it
22
  add_dependencies(doc-Developer-html-install doc)
Jan Möbius's avatar
Jan Möbius committed
23

24
25
  if (TARGET doc-Developer-html-install)
    acg_copy_after_build (doc-Developer-html-install "${CMAKE_BINARY_DIR}/Build/${ACG_PROJECT_DATADIR}/Doc/DeveloperHtml"   "${CMAKE_INSTALL_PREFIX}/${ACG_PROJECT_DATADIR}/Doc/DeveloperHtml")
Jan Möbius's avatar
Jan Möbius committed
26
27
28
  endif()

ENDIF(DOXYGEN_FOUND)