The source code and dockerfile for the GSW2024 AI Lab.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

110 lines
4.1 KiB

2 months ago
  1. #### Taken from http://www.openflipper.org/svnrepo/CoMISo/trunk/CoMISo/cmake/FindGUROBI.cmake
  2. #### This file needs to be updated regularly to include new Gurobi releases.
  3. #### Also update the error message in the Gurobi section of ../resources/CMakeLists.txt
  4. # - Try to find GUROBI
  5. # Once done this will define
  6. # GUROBI_FOUND - System has Gurobi
  7. # GUROBI_INCLUDE_DIRS - The Gurobi include directories
  8. # GUROBI_LIBRARIES - The libraries needed to use Gurobi
  9. if (GUROBI_INCLUDE_DIR)
  10. # in cache already
  11. set(GUROBI_FOUND TRUE)
  12. set(GUROBI_INCLUDE_DIRS "${GUROBI_INCLUDE_DIR}" )
  13. set(GUROBI_LIBRARIES "${GUROBI_LIBRARY};${GUROBI_CXX_LIBRARY}" )
  14. else (GUROBI_INCLUDE_DIR)
  15. find_path(GUROBI_INCLUDE_DIR
  16. NAMES gurobi_c++.h
  17. PATHS "$ENV{GUROBI_HOME}/include"
  18. "/Library/gurobi912/mac64/include"
  19. "/Library/gurobi911/mac64/include"
  20. "/Library/gurobi900/mac64/include"
  21. "/Library/gurobi811/mac64/include"
  22. "/Library/gurobi810/mac64/include"
  23. "/Library/gurobi801/mac64/include"
  24. "/Library/gurobi702/mac64/include"
  25. "/Library/gurobi652/mac64/include"
  26. "/Library/gurobi651/mac64/include"
  27. "/Library/gurobi650/mac64/include"
  28. "/Library/gurobi605/mac64/include"
  29. "/Library/gurobi604/mac64/include"
  30. "/Library/gurobi602/mac64/include"
  31. "/Library/gurobi502/mac64/include"
  32. "${GUROBI_ROOT}/include"
  33. )
  34. find_library( GUROBI_LIBRARY
  35. NAMES gurobi
  36. gurobi91
  37. gurobi90
  38. gurobi81
  39. gurobi80
  40. gurobi75
  41. gurobi70
  42. gurobi65
  43. gurobi60
  44. gurobi56
  45. gurobi55
  46. gurobi52
  47. gurobi51
  48. gurobi50
  49. gurobi46
  50. gurobi45
  51. PATHS "$ENV{GUROBI_HOME}/lib"
  52. "/Library/gurobi912/mac64/lib"
  53. "/Library/gurobi911/mac64/lib"
  54. "/Library/gurobi900/mac64/lib"
  55. "/Library/gurobi811/mac64/lib"
  56. "/Library/gurobi810/mac64/lib"
  57. "/Library/gurobi801/mac64/lib"
  58. "/Library/gurobi702/mac64/lib"
  59. "/Library/gurobi652/mac64/lib"
  60. "/Library/gurobi651/mac64/lib"
  61. "/Library/gurobi650/mac64/lib"
  62. "/Library/gurobi605/mac64/lib"
  63. "/Library/gurobi604/mac64/lib"
  64. "/Library/gurobi602/mac64/lib"
  65. "/Library/gurobi502/mac64/lib"
  66. "${GUROBI_ROOT}/lib"
  67. )
  68. find_library( GUROBI_CXX_LIBRARY
  69. NAMES gurobi_c++
  70. PATHS "$ENV{GUROBI_HOME}/lib"
  71. "/Library/gurobi912/mac64/lib"
  72. "/Library/gurobi911/mac64/lib"
  73. "/Library/gurobi900/mac64/lib"
  74. "/Library/gurobi811/mac64/lib"
  75. "/Library/gurobi810/mac64/lib"
  76. "/Library/gurobi801/mac64/lib"
  77. "/Library/gurobi702/mac64/lib"
  78. "/Library/gurobi652/mac64/lib"
  79. "/Library/gurobi651/mac64/lib"
  80. "/Library/gurobi650/mac64/lib"
  81. "/Library/gurobi605/mac64/lib"
  82. "/Library/gurobi604/mac64/lib"
  83. "/Library/gurobi602/mac64/lib"
  84. "/Library/gurobi502/mac64/lib"
  85. "${GUROBI_ROOT}/lib"
  86. )
  87. set(GUROBI_INCLUDE_DIRS "${GUROBI_INCLUDE_DIR}" )
  88. set(GUROBI_LIBRARIES "${GUROBI_LIBRARY};${GUROBI_CXX_LIBRARY}" )
  89. # use c++ headers as default
  90. # set(GUROBI_COMPILER_FLAGS "-DIL_STD" CACHE STRING "Gurobi Compiler Flags")
  91. include(FindPackageHandleStandardArgs)
  92. # handle the QUIETLY and REQUIRED arguments and set LIBCPLEX_FOUND to TRUE
  93. # if all listed variables are TRUE
  94. find_package_handle_standard_args(GUROBI DEFAULT_MSG
  95. GUROBI_LIBRARY GUROBI_CXX_LIBRARY GUROBI_INCLUDE_DIR)
  96. mark_as_advanced(GUROBI_INCLUDE_DIR GUROBI_LIBRARY GUROBI_CXX_LIBRARY)
  97. endif(GUROBI_INCLUDE_DIR)