CMakeLists.txt 676 Bytes
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
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 ()

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

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

  if (TARGET doc-install)
    acg_copy_after_build (doc-install "${CMAKE_BINARY_DIR}/Build/${ACG_PROJECT_DATADIR}/Doc/DeveloperHtml"   "${CMAKE_INSTALL_PREFIX}/${ACG_PROJECT_DATADIR}/doc/DeveloperHtml")
  endif()

ENDIF(DOXYGEN_FOUND)