From 434c0b569f51c10825acd0cbde7299803912a58e Mon Sep 17 00:00:00 2001 From: Virendra Singh Date: Thu, 26 Feb 2015 06:28:28 +0530 Subject: [PATCH] Make vhacd tool optional --- tools/CMakeLists.txt | 4 ++++ tools/vhacd/CMakeLists.txt | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index 57fe18c53f..003920a442 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -3,4 +3,8 @@ add_subdirectory(bitstream2json) add_subdirectory(json2bitstream) add_subdirectory(mtc) add_subdirectory(scribe) + +find_package(VHACD) +if(VHACD_FOUND) add_subdirectory(vhacd) +endif() diff --git a/tools/vhacd/CMakeLists.txt b/tools/vhacd/CMakeLists.txt index 51e15c8239..db0cc13e67 100644 --- a/tools/vhacd/CMakeLists.txt +++ b/tools/vhacd/CMakeLists.txt @@ -2,7 +2,7 @@ set(TARGET_NAME vhacd) setup_hifi_project() 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_link_libraries(${TARGET_NAME} ${VHACD_LIBRARIES})