CMakeLists.txt 1.02 KB
Newer Older
Jan Möbius's avatar
Jan Möbius committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
include (ACGDoxygen)

IF (DOXYGEN_FOUND)

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

  # use the doxyfile here and generate a documentation target
  acg_create_doc_target( UserHelp )

  # copy acg stylesheet data after build
  if (TARGET UserHelp )
    acg_copy_after_build (UserHelp "${CMAKE_CURRENT_SOURCE_DIR}/../ACGStyleHtml" "${CMAKE_BINARY_DIR}/Build/${ACG_PROJECT_DATADIR}/Doc/UserHTML/html") 
  endif ()

  # Add a documentation install target
  add_custom_target(doc-User-html-install COMMENT "Installing User HTML Documentation" VERBATIM )

  # Build Documentation before installing it
  add_dependencies(doc-User-html-install doc)

  if (TARGET doc-Developer-html-install)
    acg_copy_after_build (doc-User-html-install "${CMAKE_BINARY_DIR}/Build/${ACG_PROJECT_DATADIR}/Doc/UserHtml"   "${CMAKE_INSTALL_PREFIX}/${ACG_PROJECT_DATADIR}/Doc/UserHtml")
  endif()

ENDIF(DOXYGEN_FOUND)