mirror of
https://github.com/overte-org/overte.git
synced 2025-04-14 19:07:51 +02:00
don't link or include missing FBX library
This commit is contained in:
parent
6127b72834
commit
4863c924d1
2 changed files with 7 additions and 3 deletions
|
@ -4,8 +4,12 @@ setup_hifi_library(Concurrent)
|
||||||
|
|
||||||
link_hifi_libraries(networking image gpu shared ktx)
|
link_hifi_libraries(networking image gpu shared ktx)
|
||||||
|
|
||||||
find_package(FBXSDK)
|
# try to find the FBX SDK but fail silently if we don't
|
||||||
target_link_libraries(${TARGET_NAME} ${FBX_LIBRARIES})
|
# because this library is not built by default
|
||||||
target_include_directories(${TARGET_NAME} SYSTEM PRIVATE ${FBX_INCLUDE_DIR})
|
find_package(FBX)
|
||||||
|
if (FBX_FOUND)
|
||||||
|
target_link_libraries(${TARGET_NAME} ${FBX_LIBRARIES})
|
||||||
|
target_include_directories(${TARGET_NAME} SYSTEM PRIVATE ${FBX_INCLUDE_DIR})
|
||||||
|
endif ()
|
||||||
|
|
||||||
set_target_properties(${TARGET_NAME} PROPERTIES EXCLUDE_FROM_ALL TRUE EXCLUDE_FROM_DEFAULT_BUILD TRUE)
|
set_target_properties(${TARGET_NAME} PROPERTIES EXCLUDE_FROM_ALL TRUE EXCLUDE_FROM_DEFAULT_BUILD TRUE)
|
||||||
|
|
Loading…
Reference in a new issue