author | terom |
Mon, 15 Dec 2008 15:36:17 +0000 | |
changeset 376 | 2fd7fd2ee1a1 |
parent 374 | 1862c5f2cfc3 |
child 396 | e1a24791d192 |
permissions | -rw-r--r-- |
374 | 1 |
# |
2 |
# This module looks for Doxygen executable |
|
3 |
# and the Graphviz dot executable |
|
4 |
# which could be used to generate html |
|
5 |
# and graphical documentaton from source code. |
|
6 |
# |
|
7 |
# It will set the following variables: |
|
8 |
# |
|
9 |
# DOXYGEN_FOUND |
|
10 |
# DOXYGEN_EXECUTABLE |
|
11 |
# |
|
12 |
# DOXYGEN_DOT_FOUND |
|
13 |
# DOXYGEN_DOT_EXECUTABLE |
|
14 |
# DOXYGEN_DOT_EXECUTABLE_PATH |
|
15 |
# |
|
16 |
# deprecated variables: |
|
17 |
# DOXYGEN |
|
18 |
# DOT |
|
19 |
# |
|
20 |
# see: |
|
21 |
# www.doxygen.org |
|
22 |
# www.research.att.com/sw/tools/graphviz/ |
|
23 |
# |
|
24 |
# adapted from: |
|
25 |
# www.mip.informatik.uni-kiel.de/~jw/cmake/CMakeModules/FindDoxygen.cmake |
|
26 |
||
27 |
FIND_PROGRAM (DOXYGEN_EXECUTABLE |
|
28 |
NAMES doxygen |
|
29 |
DOC "Path to doxygen binary" |
|
30 |
PATHS |
|
31 |
$ENV{DOXYGEN_HOME} |
|
32 |
) |
|
33 |
#MESSAGE("DBG DOXYGEN_EXECUTABLE=${DOXYGEN_EXECUTABLE}") |
|
34 |
||
35 |
FIND_PROGRAM (DOXYGEN_DOT_EXECUTABLE |
|
36 |
NAMES dot |
|
37 |
DOC "Path to dot binary from Graphiz (for doxygen)" |
|
38 |
PATHS |
|
39 |
$ENV{DOT_HOME} |
|
40 |
) |
|
41 |
#MESSAGE("DBG DOXYGEN_DOT_EXECUTABLE=${DOXYGEN_DOT_EXECUTABLE}") |
|
42 |
||
43 |
IF (DOXYGEN_EXECUTABLE) |
|
44 |
SET (DOXYGEN_FOUND TRUE) |
|
376
2fd7fd2ee1a1
tweak mkcmake.sh, remove mkdoxyconf.sh, tweak MESSAGE output
terom
parents:
374
diff
changeset
|
45 |
|
2fd7fd2ee1a1
tweak mkcmake.sh, remove mkdoxyconf.sh, tweak MESSAGE output
terom
parents:
374
diff
changeset
|
46 |
MESSAGE (STATUS "Found Doxygen at ${DOXYGEN_EXECUTABLE}") |
374 | 47 |
ENDIF (DOXYGEN_EXECUTABLE) |
48 |
||
49 |
IF (DOXYGEN_DOT_EXECUTABLE) |
|
50 |
SET (DOXYGEN_DOT_FOUND TRUE) |
|
376
2fd7fd2ee1a1
tweak mkcmake.sh, remove mkdoxyconf.sh, tweak MESSAGE output
terom
parents:
374
diff
changeset
|
51 |
|
2fd7fd2ee1a1
tweak mkcmake.sh, remove mkdoxyconf.sh, tweak MESSAGE output
terom
parents:
374
diff
changeset
|
52 |
MESSAGE (STATUS "Found Dot at ${DOXYGEN_DOT_EXECUTABLE}") |
374 | 53 |
|
54 |
# the directory of dot is required in doxygen.config: DOT_PATH |
|
55 |
GET_FILENAME_COMPONENT (DOXYGEN_DOT_EXECUTABLE_PATH ${DOXYGEN_DOT_EXECUTABLE} PATH) |
|
56 |
||
57 |
ENDIF (DOXYGEN_DOT_EXECUTABLE) |
|
58 |
||
59 |
# hide |
|
60 |
MARK_AS_ADVANCED ( |
|
61 |
DOXYGEN_EXECUTABLE |
|
62 |
DOXYGEN_DOT_EXECUTABLE |
|
63 |
DPXYGEN_DOT_EXECUTABLE_DIR |
|
64 |
DOXYGEN |
|
65 |
DOT |
|
66 |
) |
|
67 |