WIP: auto update

This commit is contained in:
SoftFever
2026-01-04 21:47:07 +08:00
parent 7c91459c37
commit e35f4dbf62
17 changed files with 1141 additions and 158 deletions

17
deps/CMakeLists.txt vendored
View File

@@ -386,6 +386,16 @@ endif ()
include(OCCT/OCCT.cmake)
include(OpenCV/OpenCV.cmake)
# WinSparkle for Windows auto-updates
if(WIN32)
include(WinSparkle/WinSparkle.cmake)
endif()
# Sparkle 2 for macOS auto-updates
if(APPLE)
include(Sparkle/Sparkle.cmake)
endif()
set(_dep_list
dep_Boost
dep_TBB
@@ -410,12 +420,19 @@ set(_dep_list
if (MSVC)
# Experimental
#list(APPEND _dep_list "dep_qhull")
# WinSparkle for auto-updates
list(APPEND _dep_list "dep_WinSparkle")
else()
list(APPEND _dep_list "dep_Qhull")
# Not working, static build has different Eigen
#list(APPEND _dep_list "dep_libigl")
endif()
if (APPLE)
# Sparkle 2 for auto-updates
list(APPEND _dep_list "dep_Sparkle")
endif()
add_custom_target(deps ALL DEPENDS ${_dep_list})
# Note: I'm not using any of the LOG_xxx options in ExternalProject_Add() commands