3 # This module looks for a native (non-Cygwin) Doxygen.
6 find_program( DOXYGEN_EXECUTABLE
14 $ENV{ProgramFiles}/doxygen/bin
17 # We set various paths in doxygen.cfg via configure_file(). These are
18 # native system paths which aren't compatible with Cygwin's Doxygen.
19 string(TOLOWER ${DOXYGEN_EXECUTABLE} _de_lower)
20 if(${_de_lower} MATCHES "cyg")
21 set(_ignore_reason "Cygwin Doxygen found at ${DOXYGEN_EXECUTABLE}. Ignoring.")
22 message(STATUS ${_ignore_reason})
23 set(DOXYGEN_EXECUTABLE DOXYGEN_EXECUTABLE-NOTFOUND CACHE FILEPATH ${_ignore_reason} FORCE)
26 include( FindPackageHandleStandardArgs )
27 find_package_handle_standard_args( DOXYGEN DEFAULT_MSG DOXYGEN_EXECUTABLE )
29 mark_as_advanced( DOXYGEN_EXECUTABLE )
31 macro( DOXYGEN2HTML _output )
32 GET_FILENAME_COMPONENT(_OUTDIR ${_output} PATH)
33 SET(_OUTDIR ${CMAKE_CURRENT_BINARY_DIR}/${_OUTDIR})
38 -E make_directory ${_OUTDIR}
39 COMMAND $(DOXYGEN_EXECUTABLE)