diff --git a/3rdParty/libarchive/CMakeLists.txt b/3rdParty/libarchive/CMakeLists.txt index 62be8a2..033c34e 100644 --- a/3rdParty/libarchive/CMakeLists.txt +++ b/3rdParty/libarchive/CMakeLists.txt @@ -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) diff --git a/3rdParty/libtiff/CMakeLists.txt b/3rdParty/libtiff/CMakeLists.txt new file mode 100644 index 0000000..9fa3f24 --- /dev/null +++ b/3rdParty/libtiff/CMakeLists.txt @@ -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)