mirror of
https://github.com/minetest/irrlicht.git
synced 2024-11-16 15:30:25 +01:00
Export tinygltf target
This commit is contained in:
parent
f8a91087e6
commit
15e589810b
|
@ -171,11 +171,6 @@ add_library(IRRMESHOBJ OBJECT
|
|||
${IRRMESHLOADER}
|
||||
)
|
||||
|
||||
target_link_libraries(IRRMESHOBJ
|
||||
PRIVATE
|
||||
tinygltf::tinygltf
|
||||
)
|
||||
|
||||
add_library(IRROBJ OBJECT
|
||||
CBillboardSceneNode.cpp
|
||||
CCameraSceneNode.cpp
|
||||
|
@ -306,7 +301,11 @@ target_include_directories(IrrlichtMt
|
|||
${link_includes}
|
||||
)
|
||||
|
||||
target_link_libraries(IrrlichtMt PRIVATE ${link_libs})
|
||||
target_link_libraries(IrrlichtMt
|
||||
PRIVATE
|
||||
tinygltf::tinygltf
|
||||
${link_libs}
|
||||
)
|
||||
|
||||
# Propagate static library flag to lib users, only needed for Windows
|
||||
if(NOT BUILD_SHARED_LIBS)
|
||||
|
@ -325,7 +324,7 @@ endif()
|
|||
if(ANDROID)
|
||||
set(INSTALL_TARGETS IrrlichtMt native_app_glue)
|
||||
else()
|
||||
set(INSTALL_TARGETS IrrlichtMt)
|
||||
set(INSTALL_TARGETS IrrlichtMt tinygltf)
|
||||
endif()
|
||||
|
||||
install(TARGETS ${INSTALL_TARGETS}
|
||||
|
|
|
@ -18,5 +18,6 @@ target_compile_definitions(tinygltf
|
|||
|
||||
target_include_directories(tinygltf
|
||||
INTERFACE
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}"
|
||||
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>"
|
||||
"$<INSTALL_INTERFACE:./>"
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user