doc/CMakeLists.txt
author nireco
Sat, 31 Jan 2009 12:33:08 +0200
changeset 443 5d1119729f58
parent 402 ce1e536ec897
permissions -rw-r--r--
worm02 two pics to comment
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
402
ce1e536ec897 fix kishna-glista.dox -> kisna-glista.dox, and also fix VersionScript include sillyness
Tero Marttila <terom@fixme.fi>
parents: 396
diff changeset
     5
SET (PROJECT_DOX_FILE "${CMAKE_CURRENT_SOURCE_DIR}/kisna-glista.dox")
374
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
376
2fd7fd2ee1a1 tweak mkcmake.sh, remove mkdoxyconf.sh, tweak MESSAGE output
terom
parents: 374
diff changeset
    12
    MESSAGE (STATUS "Doxygen: configure ${CMAKE_CURRENT_SOURCE_DIR}/doxygen.conf.in --> ${CMAKE_CURRENT_SOURCE_DIR}/doxygen.conf")
374
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
    
376
2fd7fd2ee1a1 tweak mkcmake.sh, remove mkdoxyconf.sh, tweak MESSAGE output
terom
parents: 374
diff changeset
    29
    MESSAGE (STATUS "Doxygen: output will be installed in ${PROJECT_DOXYGEN_DIR}")
374
1862c5f2cfc3 integrate doxygen into our cmake build system
terom
parents:
diff changeset
    30
396
e1a24791d192 build scripts autodetect project version using 91d96387b359+ tip, and version is included in window title
Tero Marttila <terom@fixme.fi>
parents: 376
diff changeset
    31
ELSE (DOXYGEN_FOUND)
e1a24791d192 build scripts autodetect project version using 91d96387b359+ tip, and version is included in window title
Tero Marttila <terom@fixme.fi>
parents: 376
diff changeset
    32
    MESSAGE (STATUS "Doxygen: not found :(")    
e1a24791d192 build scripts autodetect project version using 91d96387b359+ tip, and version is included in window title
Tero Marttila <terom@fixme.fi>
parents: 376
diff changeset
    33
374
1862c5f2cfc3 integrate doxygen into our cmake build system
terom
parents:
diff changeset
    34
ENDIF (DOXYGEN_FOUND)
1862c5f2cfc3 integrate doxygen into our cmake build system
terom
parents:
diff changeset
    35