3D OBJ loading
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
# Copyright (c) 2026 Dominic Masters
|
||||
#
|
||||
# This software is released under the MIT License.
|
||||
# https://opensource.org/licenses/MIT
|
||||
|
||||
include(FetchContent)
|
||||
|
||||
if(NOT TARGET fast_obj)
|
||||
FetchContent_Declare(
|
||||
fast_obj
|
||||
GIT_REPOSITORY https://github.com/thisistherk/fast_obj.git
|
||||
GIT_TAG master
|
||||
)
|
||||
FetchContent_MakeAvailable(fast_obj)
|
||||
endif()
|
||||
|
||||
set(fast_obj_FOUND TRUE)
|
||||
set(FAST_OBJ_INCLUDE_DIRS "${fast_obj_SOURCE_DIR}")
|
||||
set(FAST_OBJ_LIBRARIES fast_obj)
|
||||
mark_as_advanced(FAST_OBJ_INCLUDE_DIRS FAST_OBJ_LIBRARIES fast_obj_FOUND)
|
||||
@@ -28,7 +28,7 @@ target_link_libraries(${DUSK_LIBRARY_TARGET_NAME} PUBLIC
|
||||
target_compile_definitions(${DUSK_LIBRARY_TARGET_NAME} PUBLIC
|
||||
DUSK_SDL2
|
||||
DUSK_OPENGL
|
||||
DUSK_OPENGL_LEGACY
|
||||
# DUSK_OPENGL_LEGACY
|
||||
DUSK_LINUX
|
||||
DUSK_DISPLAY_SIZE_DYNAMIC
|
||||
DUSK_DISPLAY_WIDTH_DEFAULT=640
|
||||
|
||||
Reference in New Issue
Block a user