Add libtiff config
This commit is contained in:
2
3rdParty/libarchive/CMakeLists.txt
vendored
2
3rdParty/libarchive/CMakeLists.txt
vendored
@@ -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
25
3rdParty/libtiff/CMakeLists.txt
vendored
Normal 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)
|
||||
Reference in New Issue
Block a user