|
@@ -2,12 +2,21 @@
|
|
include(DownloadProject)
|
|
include(DownloadProject)
|
|
|
|
|
|
|
|
|
|
-
|
|
+
|
|
set(LIBIGL_EXTRA_OPTIONS TLS_VERIFY OFF)
|
|
set(LIBIGL_EXTRA_OPTIONS TLS_VERIFY OFF)
|
|
if(NOT (${CMAKE_VERSION} VERSION_LESS "3.8.0"))
|
|
if(NOT (${CMAKE_VERSION} VERSION_LESS "3.8.0"))
|
|
list(APPEND LIBIGL_EXTRA_OPTIONS GIT_CONFIG advice.detachedHead=false)
|
|
list(APPEND LIBIGL_EXTRA_OPTIONS GIT_CONFIG advice.detachedHead=false)
|
|
endif()
|
|
endif()
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+set(LIBIGL_BRANCH_OPTIONS)
|
|
|
|
+if(NOT (${CMAKE_VERSION} VERSION_LESS "3.6.3"))
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+endif()
|
|
|
|
+
|
|
option(LIBIGL_SKIP_DOWNLOAD "Skip downloading external libraries" OFF)
|
|
option(LIBIGL_SKIP_DOWNLOAD "Skip downloading external libraries" OFF)
|
|
|
|
|
|
|
|
|
|
@@ -55,24 +64,21 @@ function(igl_download_cork)
|
|
endfunction()
|
|
endfunction()
|
|
|
|
|
|
|
|
|
|
-
|
|
+set(LIBIGL_EIGEN_VERSION 3.2.10 CACHE STRING "Default version of Eigen used by libigl.")
|
|
-
|
|
|
|
-set(LIBIGL_EIGEN_VERSION 3.2.10 CACHE STRING "Default version of Eigen used by libigl.")
|
|
|
|
-set(LIBIGL_EIGEN_MD5 8ad10ac703a78143a4062c9bda9d8fd3 CACHE STRING "md5sum of the tar.gz archive corresponding to this version.")
|
|
|
|
function(igl_download_eigen)
|
|
function(igl_download_eigen)
|
|
igl_download_project(eigen
|
|
igl_download_project(eigen
|
|
- URL http://bitbucket.org/eigen/eigen/get/${LIBIGL_EIGEN_VERSION}.tar.gz
|
|
+ GIT_REPOSITORY https://github.com/eigenteam/eigen-git-mirror.git
|
|
- URL_MD5 ${LIBIGL_EIGEN_MD5}
|
|
+ GIT_TAG ${LIBIGL_EIGEN_VERSION}
|
|
|
|
+ ${LIBIGL_BRANCH_OPTIONS}
|
|
)
|
|
)
|
|
endfunction()
|
|
endfunction()
|
|
|
|
|
|
|
|
|
|
function(igl_download_embree)
|
|
function(igl_download_embree)
|
|
igl_download_project(embree
|
|
igl_download_project(embree
|
|
- URL https://github.com/embree/embree/archive/v3.2.3.tar.gz
|
|
+ GIT_REPOSITORY https://github.com/embree/embree.git
|
|
- URL_MD5 1868cda1c97d83d7a0b67b0b64b18cef
|
|
+ GIT_TAG v3.5.2
|
|
-
|
|
+ ${LIBIGL_BRANCH_OPTIONS}
|
|
-
|
|
|
|
)
|
|
)
|
|
endfunction()
|
|
endfunction()
|
|
|
|
|
|
@@ -88,7 +94,8 @@ endfunction()
|
|
function(igl_download_glfw)
|
|
function(igl_download_glfw)
|
|
igl_download_project(glfw
|
|
igl_download_project(glfw
|
|
GIT_REPOSITORY https://github.com/glfw/glfw.git
|
|
GIT_REPOSITORY https://github.com/glfw/glfw.git
|
|
- GIT_TAG 53c8c72c676ca97c10aedfe3d0eb4271c5b23dba
|
|
+ GIT_TAG 3.3
|
|
|
|
+ ${LIBIGL_BRANCH_OPTIONS}
|
|
)
|
|
)
|
|
endfunction()
|
|
endfunction()
|
|
|
|
|
|
@@ -97,6 +104,7 @@ function(igl_download_imgui)
|
|
igl_download_project(imgui
|
|
igl_download_project(imgui
|
|
GIT_REPOSITORY https://github.com/ocornut/imgui.git
|
|
GIT_REPOSITORY https://github.com/ocornut/imgui.git
|
|
GIT_TAG v1.69
|
|
GIT_TAG v1.69
|
|
|
|
+ ${LIBIGL_BRANCH_OPTIONS}
|
|
)
|
|
)
|
|
igl_download_project(libigl-imgui
|
|
igl_download_project(libigl-imgui
|
|
GIT_REPOSITORY https://github.com/libigl/libigl-imgui.git
|
|
GIT_REPOSITORY https://github.com/libigl/libigl-imgui.git
|