Moved InitFromFile() from Geometry to MeshLoader, added MeshLoader function for USD files, added tinyusdz library
This commit is contained in:
1
3rdParty/CMakeLists.txt
vendored
1
3rdParty/CMakeLists.txt
vendored
@@ -40,3 +40,4 @@ if(ENABLE_TEST)
|
||||
add_subdirectory(catch2)
|
||||
endif()
|
||||
|
||||
add_subdirectory(tinyusdz)
|
||||
22
3rdParty/tinyusdz/CMakeLists.txt
vendored
Normal file
22
3rdParty/tinyusdz/CMakeLists.txt
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
include(Utils)
|
||||
include(FetchContent)
|
||||
|
||||
message("-- Building TinyUSDZ")
|
||||
|
||||
FetchContent_Declare(
|
||||
tinyusdz
|
||||
GIT_REPOSITORY https://github.com/syoyo/tinyusdz.git
|
||||
GIT_TAG v0.8.0rc8
|
||||
GIT_SHALLOW TRUE
|
||||
CMAKE_ARGS
|
||||
-DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_BINARY_DIR}/INSTALL
|
||||
-DCMAKE_BUILD_TYPE:STRING=Release
|
||||
-DTINYUSDZ_BUILD_TESTS:BOOL=OFF
|
||||
-DTINYUSDZ_BUILD_EXAMPLES:BOOL=OFF
|
||||
)
|
||||
FetchContent_MakeAvailable(tinyusdz)
|
||||
|
||||
function (LinkTinyUSDZ TARGET)
|
||||
target_include_directories(${TARGET} PRIVATE ${tinyusdz_SOURCE_DIR}/src)
|
||||
target_link_libraries(${TARGET} PRIVATE tinyusdz_static)
|
||||
endfunction ()
|
||||
Reference in New Issue
Block a user