1
0

FindDoxygen.cmake 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. "C:/Program Files/ATT/Graphviz/bin"
  18. [HKEY_LOCAL_MACHINE\\SOFTWARE\\ATT\\Graphviz;InstallPath]/bin
  19. /Applications/Graphviz.app/Contents/MacOS
  20. /Applications/Doxygen.app/Contents/Resources
  21. /Applications/Doxygen.app/Contents/MacOS
  22. )
  23. # The Doxyfile wants the path to Dot, not the entire path and executable
  24. # so for convenience, I'll add another search for DOT_PATH.
  25. FIND_PATH(DOT_PATH
  26. dot
  27. "C:/Program Files/ATT/Graphviz/bin"
  28. [HKEY_LOCAL_MACHINE\\SOFTWARE\\ATT\\Graphviz;InstallPath]/bin
  29. /Applications/Graphviz.app/Contents/MacOS
  30. /Applications/Doxygen.app/Contents/Resources
  31. /Applications/Doxygen.app/Contents/MacOS
  32. )
  33. MARK_AS_ADVANCED(
  34. DOT
  35. DOT_PATH
  36. DOXYGEN
  37. )