CMakeLists.txt 1.07 KB
Newer Older
Mike Kremer's avatar
   
Mike Kremer committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
include (ACGDoxygen)

IF (DOXYGEN_FOUND)

    set(developer_html_doc_dir "${CMAKE_BINARY_DIR}/Build/${ACG_PROJECT_DATADIR}/Help/html")
  set(developer_qt_help_dir "${CMAKE_BINARY_DIR}/Build/${ACG_PROJECT_DATADIR}/Help")

  # Create directories in order to avoid doxygen warnings
  if(NOT (IS_DIRECTORY ${developer_qt_help_dir}) )
     file(MAKE_DIRECTORY ${developer_qt_help_dir} )
  endif()             
  
  # Create directories in order to avoid doxygen warnings
  if(NOT (IS_DIRECTORY ${developer_html_doc_dir}) )
     file(MAKE_DIRECTORY ${developer_html_doc_dir} )
  endif()

  # use the doxyfile here and generate a documentation target
  # Use the local doxygen config
  # and automatically append to doc target
  acg_create_doc_target( doc-DeveloperQtHelp )
 
Jan Möbius's avatar
Jan Möbius committed
23
24
25
26
27
  # On apple we take the whole directory, so we don't need this extra install command
  if ( NOT APPLE )  
    # install the DeveloperQtHelp on install
    install(DIRECTORY "${CMAKE_BINARY_DIR}/Build/${ACG_PROJECT_DATADIR}/Help" DESTINATION "${ACG_PROJECT_DATADIR}" )
  endif()
Mike Kremer's avatar
   
Mike Kremer committed
28
29

ENDIF(DOXYGEN_FOUND)