mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 12:42:58 +02:00
Make vhacd tool optional
This commit is contained in:
parent
ed09b619d1
commit
434c0b569f
2 changed files with 5 additions and 1 deletions
|
@ -3,4 +3,8 @@ add_subdirectory(bitstream2json)
|
||||||
add_subdirectory(json2bitstream)
|
add_subdirectory(json2bitstream)
|
||||||
add_subdirectory(mtc)
|
add_subdirectory(mtc)
|
||||||
add_subdirectory(scribe)
|
add_subdirectory(scribe)
|
||||||
|
|
||||||
|
find_package(VHACD)
|
||||||
|
if(VHACD_FOUND)
|
||||||
add_subdirectory(vhacd)
|
add_subdirectory(vhacd)
|
||||||
|
endif()
|
||||||
|
|
|
@ -2,7 +2,7 @@ set(TARGET_NAME vhacd)
|
||||||
setup_hifi_project()
|
setup_hifi_project()
|
||||||
link_hifi_libraries(shared model fbx gpu networking octree)
|
link_hifi_libraries(shared model fbx gpu networking octree)
|
||||||
|
|
||||||
find_package(VHACD REQUIRED)
|
#find_package(VHACD REQUIRED) done in CMakeList.txt in parent directory
|
||||||
target_include_directories(${TARGET_NAME} PUBLIC ${VHACD_INCLUDE_DIRS})
|
target_include_directories(${TARGET_NAME} PUBLIC ${VHACD_INCLUDE_DIRS})
|
||||||
target_link_libraries(${TARGET_NAME} ${VHACD_LIBRARIES})
|
target_link_libraries(${TARGET_NAME} ${VHACD_LIBRARIES})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue