Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortamasmeszaros <meszaros.q@gmail.com>2019-06-05 20:19:49 +0300
committertamasmeszaros <meszaros.q@gmail.com>2019-06-05 20:19:49 +0300
commit6136fe7d92e386f1a6a6ab227f49c7d6a68abbb3 (patch)
treedffa47a60127c999fe7761628d0f2407fc6042c1 /deps/deps-windows.cmake
parent7a5d3de1c4497efb2d0efa3b6abea6bfdcbac198 (diff)
Future-proof qhull dependency handling
Diffstat (limited to 'deps/deps-windows.cmake')
-rw-r--r--deps/deps-windows.cmake27
1 files changed, 27 insertions, 0 deletions
diff --git a/deps/deps-windows.cmake b/deps/deps-windows.cmake
index b3b31e5f3..df47a0f44 100644
--- a/deps/deps-windows.cmake
+++ b/deps/deps-windows.cmake
@@ -199,6 +199,33 @@ if (${DEP_DEBUG})
)
endif ()
+find_package(Git REQUIRED)
+
+ExternalProject_Add(dep_qhull
+ EXCLUDE_FROM_ALL 1
+ URL "https://github.com/qhull/qhull/archive/v7.2.1.tar.gz"
+ URL_HASH SHA256=6fc251e0b75467e00943bfb7191e986fce0e1f8f6f0251f9c6ce5a843821ea78
+ CMAKE_GENERATOR "${DEP_MSVC_GEN}"
+ CMAKE_ARGS
+ -DCMAKE_INSTALL_PREFIX=${DESTDIR}/usr/local
+ -DBUILD_SHARED_LIBS=OFF
+ -DCMAKE_POSITION_INDEPENDENT_CODE=ON
+ -DCMAKE_DEBUG_POSTFIX=d
+ PATCH_COMMAND ${GIT_EXECUTABLE} apply --ignore-space-change --ignore-whitespace ${CMAKE_CURRENT_SOURCE_DIR}/qhull-mods.patch
+ BUILD_COMMAND msbuild /m /P:Configuration=Release INSTALL.vcxproj
+ INSTALL_COMMAND ""
+)
+
+if (${DEP_DEBUG})
+ ExternalProject_Get_Property(dep_qhull BINARY_DIR)
+ ExternalProject_Add_Step(dep_qhull build_debug
+ DEPENDEES build
+ DEPENDERS install
+ COMMAND msbuild /m /P:Configuration=Debug INSTALL.vcxproj
+ WORKING_DIRECTORY "${BINARY_DIR}"
+ )
+endif ()
+
if (${DEPS_BITS} EQUAL 32)
set(DEP_WXWIDGETS_TARGET "")