Partily working (before transparaent)
This commit is contained in:
15
LinkTinyObjLoader.cmake
Normal file
15
LinkTinyObjLoader.cmake
Normal file
@@ -0,0 +1,15 @@
|
||||
include(FetchContent)
|
||||
|
||||
macro(linkTinyObjLoader TARGET ACCESS)
|
||||
FetchContent_Declare(
|
||||
tinyobjloader
|
||||
GIT_REPOSITORY https://github.com/tinyobjloader/tinyobjloader.git
|
||||
GIT_TAG release
|
||||
)
|
||||
|
||||
FetchContent_MakeAvailable(tinyobjloader)
|
||||
|
||||
target_link_libraries(${TARGET} ${ACCESS} tinyobjloader)
|
||||
target_include_directories(${TARGET} PUBLIC ${tinyobjloader_SOURCE_DIR})
|
||||
|
||||
endmacro()
|
||||
Reference in New Issue
Block a user