deps-unix-common.cmake 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. # The unix common part expects DEP_CMAKE_OPTS to be set
  2. if (MINGW)
  3. set(TBB_MINGW_WORKAROUND "-flifetime-dse=1")
  4. else ()
  5. set(TBB_MINGW_WORKAROUND "")
  6. endif ()
  7. ExternalProject_Add(dep_tbb
  8. EXCLUDE_FROM_ALL 1
  9. URL "https://github.com/wjakob/tbb/archive/a0dc9bf76d0120f917b641ed095360448cabc85b.tar.gz"
  10. URL_HASH SHA256=0545cb6033bd1873fcae3ea304def720a380a88292726943ae3b9b207f322efe
  11. CMAKE_ARGS
  12. -DTBB_BUILD_SHARED=OFF
  13. -DTBB_BUILD_TESTS=OFF
  14. -DCMAKE_CXX_FLAGS=${TBB_MINGW_WORKAROUND}
  15. -DCMAKE_INSTALL_PREFIX=${DESTDIR}/usr/local
  16. ${DEP_CMAKE_OPTS}
  17. )
  18. ExternalProject_Add(dep_gtest
  19. EXCLUDE_FROM_ALL 1
  20. URL "https://github.com/google/googletest/archive/release-1.8.1.tar.gz"
  21. URL_HASH SHA256=9bf1fe5182a604b4135edc1a425ae356c9ad15e9b23f9f12a02e80184c3a249c
  22. CMAKE_ARGS -DBUILD_GMOCK=OFF ${DEP_CMAKE_OPTS} -DCMAKE_INSTALL_PREFIX=${DESTDIR}/usr/local
  23. )
  24. ExternalProject_Add(dep_cereal
  25. EXCLUDE_FROM_ALL 1
  26. URL "https://github.com/USCiLab/cereal/archive/v1.2.2.tar.gz"
  27. # URL_HASH SHA256=c6dd7a5701fff8ad5ebb45a3dc8e757e61d52658de3918e38bab233e7fd3b4ae
  28. CMAKE_ARGS
  29. -DJUST_INSTALL_CEREAL=on
  30. -DCMAKE_INSTALL_PREFIX=${DESTDIR}/usr/local
  31. ${DEP_CMAKE_OPTS}
  32. )
  33. ExternalProject_Add(dep_nlopt
  34. EXCLUDE_FROM_ALL 1
  35. URL "https://github.com/stevengj/nlopt/archive/v2.5.0.tar.gz"
  36. URL_HASH SHA256=c6dd7a5701fff8ad5ebb45a3dc8e757e61d52658de3918e38bab233e7fd3b4ae
  37. CMAKE_ARGS
  38. -DBUILD_SHARED_LIBS=OFF
  39. -DNLOPT_PYTHON=OFF
  40. -DNLOPT_OCTAVE=OFF
  41. -DNLOPT_MATLAB=OFF
  42. -DNLOPT_GUILE=OFF
  43. -DCMAKE_INSTALL_PREFIX=${DESTDIR}/usr/local
  44. ${DEP_CMAKE_OPTS}
  45. )
  46. find_package(Git REQUIRED)
  47. ExternalProject_Add(dep_qhull
  48. EXCLUDE_FROM_ALL 1
  49. URL "https://github.com/qhull/qhull/archive/v7.2.1.tar.gz"
  50. URL_HASH SHA256=6fc251e0b75467e00943bfb7191e986fce0e1f8f6f0251f9c6ce5a843821ea78
  51. CMAKE_ARGS
  52. -DBUILD_SHARED_LIBS=OFF
  53. -DCMAKE_INSTALL_PREFIX=${DESTDIR}/usr/local
  54. ${DEP_CMAKE_OPTS}
  55. PATCH_COMMAND ${GIT_EXECUTABLE} apply --ignore-space-change --ignore-whitespace ${CMAKE_CURRENT_SOURCE_DIR}/qhull-mods.patch
  56. )
  57. ExternalProject_Add(dep_libigl
  58. EXCLUDE_FROM_ALL 1
  59. URL "https://github.com/libigl/libigl/archive/v2.0.0.tar.gz"
  60. URL_HASH SHA256=42518e6b106c7209c73435fd260ed5d34edeb254852495b4c95dce2d95401328
  61. CMAKE_ARGS
  62. -DCMAKE_INSTALL_PREFIX=${DESTDIR}/usr/local
  63. -DLIBIGL_BUILD_PYTHON=OFF
  64. -DLIBIGL_BUILD_TESTS=OFF
  65. -DLIBIGL_BUILD_TUTORIALS=OFF
  66. -DLIBIGL_USE_STATIC_LIBRARY=OFF #${DEP_BUILD_IGL_STATIC}
  67. -DLIBIGL_WITHOUT_COPYLEFT=OFF
  68. -DLIBIGL_WITH_CGAL=OFF
  69. -DLIBIGL_WITH_COMISO=OFF
  70. -DLIBIGL_WITH_CORK=OFF
  71. -DLIBIGL_WITH_EMBREE=OFF
  72. -DLIBIGL_WITH_MATLAB=OFF
  73. -DLIBIGL_WITH_MOSEK=OFF
  74. -DLIBIGL_WITH_OPENGL=OFF
  75. -DLIBIGL_WITH_OPENGL_GLFW=OFF
  76. -DLIBIGL_WITH_OPENGL_GLFW_IMGUI=OFF
  77. -DLIBIGL_WITH_PNG=OFF
  78. -DLIBIGL_WITH_PYTHON=OFF
  79. -DLIBIGL_WITH_TETGEN=OFF
  80. -DLIBIGL_WITH_TRIANGLE=OFF
  81. -DLIBIGL_WITH_XML=OFF
  82. PATCH_COMMAND ${GIT_EXECUTABLE} apply --ignore-space-change --ignore-whitespace ${CMAKE_CURRENT_SOURCE_DIR}/igl-fixes.patch
  83. )