FindDoxygen.cmake 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # - this module looks for Doxygen and the path to Graphiz's dot
  2. # With the OS X GUI version, it likes to be installed to /Applications and
  3. # it contains the doxygen executable in the bundle. In the versions I've
  4. # seen, it is located in Resources, but in general, more often binaries are
  5. # located in MacOS.
  6. FIND_PROGRAM(DOXYGEN
  7. doxygen
  8. "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\doxygen_is1;Inno Setup: App Path]/bin"
  9. /Applications/Doxygen.app/Contents/Resources
  10. /Applications/Doxygen.app/Contents/MacOS
  11. )
  12. # In the older versions of OS X Doxygen, dot was included with the
  13. # Doxygen bundle. But the new versions place make you download Graphviz.app
  14. # which contains dot in its bundle.
  15. FIND_PROGRAM(DOT
  16. dot
  17. "$ENV{ProgramFiles}/ATT/Graphviz/bin"
  18. "C:/Program Files/ATT/Graphviz/bin"
  19. [HKEY_LOCAL_MACHINE\\SOFTWARE\\ATT\\Graphviz;InstallPath]/bin
  20. /Applications/Graphviz.app/Contents/MacOS
  21. /Applications/Doxygen.app/Contents/Resources
  22. /Applications/Doxygen.app/Contents/MacOS
  23. )
  24. # The Doxyfile wants the path to Dot, not the entire path and executable
  25. # so for convenience, I'll add another search for DOT_PATH.
  26. FIND_PATH(DOT_PATH
  27. dot
  28. "C:/Program Files/ATT/Graphviz/bin"
  29. [HKEY_LOCAL_MACHINE\\SOFTWARE\\ATT\\Graphviz;InstallPath]/bin
  30. /Applications/Graphviz.app/Contents/MacOS
  31. /Applications/Doxygen.app/Contents/Resources
  32. /Applications/Doxygen.app/Contents/MacOS
  33. )
  34. MARK_AS_ADVANCED(
  35. DOT
  36. DOT_PATH
  37. DOXYGEN
  38. )