doc/CMakeLists.txt
author terom
Mon, 15 Dec 2008 15:28:56 +0000
changeset 374 1862c5f2cfc3
child 376 2fd7fd2ee1a1
permissions -rw-r--r--
integrate doxygen into our cmake build system
374
1862c5f2cfc3 integrate doxygen into our cmake build system
terom
parents:
diff changeset
     1
# Find system Doxygen
1862c5f2cfc3 integrate doxygen into our cmake build system
terom
parents:
diff changeset
     2
find_package(Doxygen)
1862c5f2cfc3 integrate doxygen into our cmake build system
terom
parents:
diff changeset
     3
1862c5f2cfc3 integrate doxygen into our cmake build system
terom
parents:
diff changeset
     4
# set our .dox path
1862c5f2cfc3 integrate doxygen into our cmake build system
terom
parents:
diff changeset
     5
SET (PROJECT_DOX_FILE "${CMAKE_CURRENT_SOURCE_DIR}/kishna-glista.dox")
1862c5f2cfc3 integrate doxygen into our cmake build system
terom
parents:
diff changeset
     6
1862c5f2cfc3 integrate doxygen into our cmake build system
terom
parents:
diff changeset
     7
# Where to install doxygen output
1862c5f2cfc3 integrate doxygen into our cmake build system
terom
parents:
diff changeset
     8
set(PROJECT_DOXYGEN_DIR "${PROJECT_SOURCE_DIR}/doc")
1862c5f2cfc3 integrate doxygen into our cmake build system
terom
parents:
diff changeset
     9
1862c5f2cfc3 integrate doxygen into our cmake build system
terom
parents:
diff changeset
    10
IF (DOXYGEN_FOUND)
1862c5f2cfc3 integrate doxygen into our cmake build system
terom
parents:
diff changeset
    11
    # doxygen.conf.in -> doxygen.conf
1862c5f2cfc3 integrate doxygen into our cmake build system
terom
parents:
diff changeset
    12
    MESSAGE (STATUS "configure ${CMAKE_CURRENT_SOURCE_DIR}/doxygen.conf.in --> ${CMAKE_CURRENT_SOURCE_DIR}/doxygen.conf")
1862c5f2cfc3 integrate doxygen into our cmake build system
terom
parents:
diff changeset
    13
1862c5f2cfc3 integrate doxygen into our cmake build system
terom
parents:
diff changeset
    14
    CONFIGURE_FILE (
1862c5f2cfc3 integrate doxygen into our cmake build system
terom
parents:
diff changeset
    15
        ${CMAKE_CURRENT_SOURCE_DIR}/doxygen.conf.in
1862c5f2cfc3 integrate doxygen into our cmake build system
terom
parents:
diff changeset
    16
        ${CMAKE_CURRENT_BINARY_DIR}/doxygen.conf
1862c5f2cfc3 integrate doxygen into our cmake build system
terom
parents:
diff changeset
    17
        @ONLY
1862c5f2cfc3 integrate doxygen into our cmake build system
terom
parents:
diff changeset
    18
    )
1862c5f2cfc3 integrate doxygen into our cmake build system
terom
parents:
diff changeset
    19
    
1862c5f2cfc3 integrate doxygen into our cmake build system
terom
parents:
diff changeset
    20
    # set doxygen config path
1862c5f2cfc3 integrate doxygen into our cmake build system
terom
parents:
diff changeset
    21
    SET (DOXYGEN_CONFIG "${CMAKE_CURRENT_BINARY_DIR}/doxygen.conf")
1862c5f2cfc3 integrate doxygen into our cmake build system
terom
parents:
diff changeset
    22
    
1862c5f2cfc3 integrate doxygen into our cmake build system
terom
parents:
diff changeset
    23
    # add custom doc target
1862c5f2cfc3 integrate doxygen into our cmake build system
terom
parents:
diff changeset
    24
    ADD_CUSTOM_TARGET(
1862c5f2cfc3 integrate doxygen into our cmake build system
terom
parents:
diff changeset
    25
        doc 
1862c5f2cfc3 integrate doxygen into our cmake build system
terom
parents:
diff changeset
    26
        ${DOXYGEN_EXECUTABLE} ${DOXYGEN_CONFIG}
1862c5f2cfc3 integrate doxygen into our cmake build system
terom
parents:
diff changeset
    27
    )
1862c5f2cfc3 integrate doxygen into our cmake build system
terom
parents:
diff changeset
    28
    
1862c5f2cfc3 integrate doxygen into our cmake build system
terom
parents:
diff changeset
    29
    MESSAGE (STATUS "doxygen output will be installed in ${PROJECT_DOXYGEN_DIR}")
1862c5f2cfc3 integrate doxygen into our cmake build system
terom
parents:
diff changeset
    30
1862c5f2cfc3 integrate doxygen into our cmake build system
terom
parents:
diff changeset
    31
ENDIF (DOXYGEN_FOUND)
1862c5f2cfc3 integrate doxygen into our cmake build system
terom
parents:
diff changeset
    32