LibiglDownloadExternal.cmake 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. ################################################################################
  2. include(DownloadProject)
  3. # Shortcut function
  4. function(igl_download_project name)
  5. download_project(
  6. PROJ ${name}
  7. SOURCE_DIR ${LIBIGL_EXTERNAL}/${name}
  8. DOWNLOAD_DIR ${LIBIGL_EXTERNAL}/.cache/${name}
  9. QUIET
  10. ${ARGN}
  11. )
  12. endfunction()
  13. ################################################################################
  14. ## CGAL
  15. function(igl_download_cgal)
  16. igl_download_project(cgal
  17. GIT_REPOSITORY https://github.com/libigl/cgal.git
  18. GIT_TAG f7c3c8212b56c0d6dae63787efc99093f4383415
  19. )
  20. endfunction()
  21. ## CoMISo
  22. function(igl_download_comiso)
  23. igl_download_project(CoMISo
  24. GIT_REPOSITORY https://github.com/libigl/CoMISo.git
  25. GIT_TAG fea3ee0ba7d42ee3eca202d484e4fad855e4d6aa
  26. )
  27. endfunction()
  28. ## Cork
  29. function(igl_download_cork)
  30. igl_download_project(cork
  31. GIT_REPOSITORY https://github.com/libigl/cork.git
  32. GIT_TAG 27ad8a285838f5a480d856429e39d3d56d4338f9
  33. )
  34. endfunction()
  35. ## Eigen
  36. function(igl_download_eigen)
  37. igl_download_project(eigen
  38. URL http://bitbucket.org/eigen/eigen/get/3.2.10.tar.gz
  39. URL_MD5 8ad10ac703a78143a4062c9bda9d8fd3
  40. )
  41. endfunction()
  42. ## Embree
  43. function(igl_download_embree)
  44. igl_download_project(embree
  45. URL https://github.com/embree/embree/archive/v2.17.4.tar.gz
  46. URL_MD5 2038f3216b1d626e87453aee72c470e5
  47. # GIT_REPOSITORY https://github.com/embree/embree.git
  48. # GIT_TAG cb61322db3bb7082caed21913ad14869b436fe78
  49. )
  50. endfunction()
  51. ## GLFW
  52. function(igl_download_glfw)
  53. igl_download_project(glfw
  54. GIT_REPOSITORY https://github.com/glfw/glfw.git
  55. GIT_TAG 58cc4b2c5c2c9a245e09451437dd6f5af4d60c84
  56. )
  57. endfunction()
  58. ## ImGui
  59. function(igl_download_imgui)
  60. download_project(
  61. PROJ imgui
  62. SOURCE_DIR ${LIBIGL_EXTERNAL}/imgui/imgui
  63. DOWNLOAD_DIR ${LIBIGL_EXTERNAL}/.cache/${name}
  64. GIT_REPOSITORY https://github.com/ocornut/imgui.git
  65. GIT_TAG bc6ac8b2aee0614debd940e45bc9cd0d9b355c86
  66. )
  67. endfunction()
  68. ## pybind11
  69. function(igl_download_pybind11)
  70. igl_download_project(pybind11
  71. GIT_REPOSITORY https://github.com/pybind/pybind11.git
  72. GIT_TAG 2d0507db43cd5a117f7843e053b17dffca114107
  73. )
  74. endfunction()
  75. ## TetGen
  76. function(igl_download_tetgen)
  77. igl_download_project(tetgen
  78. GIT_REPOSITORY https://github.com/libigl/tetgen.git
  79. GIT_TAG d2dcc33cb8551f16e302c8130ce12fa52992cd09
  80. )
  81. endfunction()
  82. ## TinyXML
  83. function(igl_download_tinyxml2)
  84. igl_download_project(tinyxml2
  85. GIT_REPOSITORY https://github.com/leethomason/tinyxml2.git
  86. GIT_TAG d175e9de0be0d4db75d0a8cf065599a435a87eb6
  87. )
  88. endfunction()
  89. ## Triangle
  90. function(igl_download_triangle)
  91. igl_download_project(triangle
  92. GIT_REPOSITORY https://github.com/libigl/triangle.git
  93. GIT_TAG d6761dd691e2e1318c83bf7773fea88d9437464a
  94. )
  95. endfunction()