FindDoxygen.cmake 1.4 KB

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