21 lines
538 B
CMake
21 lines
538 B
CMake
# 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)
|