Ktx library + ImageLoaderKtx
This commit is contained in:
3
3rdParty/CMakeLists.txt
vendored
3
3rdParty/CMakeLists.txt
vendored
@@ -41,4 +41,5 @@ if(ENABLE_TEST)
|
||||
add_subdirectory(catch2)
|
||||
endif()
|
||||
|
||||
add_subdirectory(tinyusdz)
|
||||
add_subdirectory(tinyusdz)
|
||||
add_subdirectory(ktx-software)
|
||||
19
3rdParty/ktx-software/CMakeLists.txt
vendored
Normal file
19
3rdParty/ktx-software/CMakeLists.txt
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
include(FetchContent)
|
||||
|
||||
if(NOT DEFINED KTX_REPO)
|
||||
set(KTX_REPO https://github.com/KhronosGroup/KTX-Software.git)
|
||||
endif ()
|
||||
|
||||
FetchContent_Declare(
|
||||
ktx
|
||||
EXCLUDE_FROM_ALL
|
||||
GIT_REPOSITORY ${KTX_REPO}
|
||||
GIT_TAG v4.3.2
|
||||
GIT_SHALLOW TRUE
|
||||
)
|
||||
|
||||
set(LIB_TYPE_DEFAULT OFF CACHE BOOL "" FORCE)
|
||||
set(BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE)
|
||||
set(KTX_FEATURE_STATIC_LIBRARY ON CACHE BOOL "" FORCE)
|
||||
|
||||
FetchContent_MakeAvailable(ktx)
|
||||
Reference in New Issue
Block a user