PageRenderTime 28ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/indra/cmake/FindMono.cmake

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 68 lines | 49 code | 5 blank | 14 comment | 0 complexity | 1c6ee7bd59d18052f21393a933dd65bd MD5 | raw file
Possible License(s): LGPL-2.1
  1. # - Try to find the mono, mcs, gmcs and gacutil
  2. #
  3. # defines
  4. #
  5. # MONO_FOUND - system has mono, mcs, gmcs and gacutil
  6. # MONO_PATH - where to find 'mono'
  7. # MCS_PATH - where to find 'mcs'
  8. # GMCS_PATH - where to find 'gmcs'
  9. # GACUTIL_PATH - where to find 'gacutil'
  10. #
  11. # copyright (c) 2007 Arno Rehn arno@arnorehn.de
  12. #
  13. # Redistribution and use is allowed according to the terms of the GPL license.
  14. # Removed the check for gmcs
  15. FIND_PROGRAM (MONO_EXECUTABLE mono
  16. "$ENV{PROGRAMFILES}/Mono-1.9.1/bin"
  17. "$ENV{PROGRAMFILES}/Mono-1.2.6/bin"
  18. /bin
  19. /usr/bin
  20. /usr/local/bin
  21. )
  22. FIND_PROGRAM (MCS_EXECUTABLE mcs
  23. "$ENV{PROGRAMFILES}/Mono-1.9.1/bin"
  24. "$ENV{PROGRAMFILES}/Mono-1.2.6/bin"
  25. /bin
  26. /usr/bin
  27. /usr/local/bin
  28. )
  29. FIND_PROGRAM (GMCS_EXECUTABLE gmcs
  30. "$ENV{PROGRAMFILES}/Mono-1.9.1/bin"
  31. "$ENV{PROGRAMFILES}/Mono-1.2.6/bin"
  32. /bin
  33. /usr/bin
  34. /usr/local/bin
  35. )
  36. FIND_PROGRAM (GACUTIL_EXECUTABLE gacutil
  37. "$ENV{PROGRAMFILES}/Mono-1.9.1/bin"
  38. "$ENV{PROGRAMFILES}/Mono-1.2.6/bin"
  39. /bin
  40. /usr/bin
  41. /usr/local/bin
  42. )
  43. FIND_PROGRAM (ILASM_EXECUTABLE
  44. NAMES ilasm.bat ilasm
  45. NO_DEFAULT_PATH
  46. PATHS "$ENV{PROGRAMFILES}/Mono-1.9.1/bin" "$ENV{PROGRAMFILES}/Mono-1.2.6/bin" /bin /usr/bin /usr/local/bin
  47. )
  48. SET (MONO_FOUND FALSE)
  49. IF (MONO_EXECUTABLE AND MCS_EXECUTABLE AND GACUTIL_EXECUTABLE)
  50. SET (MONO_FOUND TRUE)
  51. ENDIF (MONO_EXECUTABLE AND MCS_EXECUTABLE AND GACUTIL_EXECUTABLE)
  52. IF (MONO_FOUND)
  53. IF (NOT Mono_FIND_QUIETLY)
  54. MESSAGE(STATUS "Found mono: ${MONO_EXECUTABLE}")
  55. MESSAGE(STATUS "Found mcs: ${MCS_EXECUTABLE}")
  56. MESSAGE(STATUS "Found gacutil: ${GACUTIL_EXECUTABLE}")
  57. ENDIF (NOT Mono_FIND_QUIETLY)
  58. ELSE (MONO_FOUND)
  59. IF (Mono_FIND_REQUIRED)
  60. MESSAGE(FATAL_ERROR "Could not find one or more of the following programs: mono, mcs, gacutil")
  61. ENDIF (Mono_FIND_REQUIRED)
  62. ENDIF (MONO_FOUND)
  63. MARK_AS_ADVANCED(MONO_EXECUTABLE MCS_EXECUTABLE GACUTIL_EXECUTABLE)