blob: 23a99fdcc6cc2aff9c761661d8c1018fd0ba6b2c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
#
# - Find unix commands from cygwin
# This module looks for some usual Unix commands.
#
include( FindCygwin )
find_program( DOXYGEN_EXECUTABLE
NAMES
doxygen
PATHS
${CYGWIN_INSTALL_PATH}/bin
/bin
/usr/bin
/usr/local/bin
/sbin
)
include( FindPackageHandleStandardArgs )
find_package_handle_standard_args( DOXYGEN DEFAULT_MSG DOXYGEN_EXECUTABLE )
mark_as_advanced( DOXYGEN_EXECUTABLE )
macro( DOXYGEN2HTML _output )
GET_FILENAME_COMPONENT(_OUTDIR ${_output} PATH)
SET(_OUTDIR ${CMAKE_CURRENT_BINARY_DIR}/${_OUTDIR})
add_custom_command(
OUTPUT
COMMAND cmake
-E make_directory ${_OUTDIR}
COMMAND $(DOXYGEN_EXECUTABLE)
doxygen.cfg
COMMAND chmod
-R og+rX ${_OUTDIR}
DEPENDS
doxygen.cfg
)
endmacro()
|