Add libtiff config

This commit is contained in:
Georg Hagen
2025-11-30 23:58:39 +01:00
parent abcb8a1473
commit b1b9dfee25
2 changed files with 26 additions and 1 deletions

View File

@@ -26,7 +26,7 @@ function(LinkLibArchive TARGET)
elseif (EXISTS ${CMAKE_BINARY_DIR}/deps/INSTALL/lib/libarchive.a)
set(LibArchive_LIBRARIES ${CMAKE_BINARY_DIR}/deps/INSTALL/lib/libarchive.a)
endif()
set(ZLIB_USE_STATIC_LIBS ON)
set(ZLIB_USE_STATIC_LIBS ON CACHE BOOL "" FORCE)
find_package(ZLIB REQUIRED)
find_package(zstd REQUIRED)
find_package(LZ4 QUIET)

25
3rdParty/libtiff/CMakeLists.txt vendored Normal file
View File

@@ -0,0 +1,25 @@
include(FetchContent)
if(NOT DEFINED LIBTIFF_REPO)
set(LIBTIFF_REPO https://git.madvoxel.net/Mirrors/libtiff.git)
endif ()
set(FETCHCONTENT_UPDATES_DISCONNECTED ON)
FetchContent_Declare(
libtiff
EXCLUDE_FROM_ALL
GIT_REPOSITORY ${LIBTIFF_REPO}
GIT_SHALLOW TRUE
)
set(tiff-static ON CACHE BOOL "" FORCE)
set(tiff-tools OFF CACHE BOOL "" FORCE)
set(tiff-tests OFF CACHE BOOL "" FORCE)
set(tiff-docs OFF CACHE BOOL "" FORCE)
set(tiff-contrib OFF CACHE BOOL "" FORCE)
set(tiff-opengl OFF CACHE BOOL "" FORCE)
set(ZLIB_USE_STATIC_LIBS ON CACHE BOOL "" FORCE)
list(APPEND CMAKE_PREFIX_PATH ${CMAKE_BINARY_DIR}/deps/INSTALL)
FetchContent_MakeAvailable(libtiff)