-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathWildMeshingDownloadExternal.cmake
More file actions
53 lines (46 loc) · 1.68 KB
/
WildMeshingDownloadExternal.cmake
File metadata and controls
53 lines (46 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
################################################################################
include(DownloadProject)
# With CMake 3.8 and above, we can hide warnings about git being in a
# detached head by passing an extra GIT_CONFIG option
if(NOT (${CMAKE_VERSION} VERSION_LESS "3.8.0"))
set(WILDMESHING_EXTRA_OPTIONS "GIT_CONFIG advice.detachedHead=false")
else()
set(WILDMESHING_EXTRA_OPTIONS "")
endif()
# Shortcut function
function(wildmeshing_download_project name)
download_project(
PROJ ${name}
SOURCE_DIR ${WILDMESHING_EXTERNAL}/${name}
DOWNLOAD_DIR ${WILDMESHING_EXTERNAL}/.cache/${name}
QUIET
${WILDMESHING_EXTRA_OPTIONS}
${ARGN}
)
endfunction()
################################################################################
function(wildmeshing_download_triwild)
wildmeshing_download_project(triwild
GIT_REPOSITORY https://github.com/wildmeshing/TriWild
GIT_TAG ac7977c1da9fb25de8c0f7c666055e6d09034686
)
endfunction()
function(wildmeshing_download_tetwild)
wildmeshing_download_project(tetwild
GIT_REPOSITORY https://github.com/MariusCausemann/fTetWild.git
GIT_TAG 725fdc3abfacfde2096496eb0b16f9db5e9b6293
)
endfunction()
function(wildmeshing_download_pybind11)
wildmeshing_download_project(pybind11
GIT_REPOSITORY https://github.com/pybind/pybind11
GIT_TAG a2e59f0e7065404b44dfe92a28aca47ba1378dc4
)
endfunction()
# data
function(wildmeshing_download_data)
wildmeshing_download_project(data
GIT_REPOSITORY https://github.com/wildmeshing/data
GIT_TAG 363f8e860673a4e4f68df6465b99e86809c96283
)
endfunction()