Browse Source

Skip embree dependent tutorial embree not found.

Former-commit-id: ba032df00f1133b5295587a82eb6066c7d5aaf52
Qingnan Zhou 9 years ago
parent
commit
5cef5e668e
1 changed files with 13 additions and 5 deletions
  1. 13 5
      tutorial/CMakeLists.txt

+ 13 - 5
tutorial/CMakeLists.txt

@@ -60,9 +60,15 @@ ENDIF(MSVC)
 
 option(ENABLE_TUTORIALS " " OFF)
 
-add_subdirectory("../external/embree/" "embree")
-include_directories("../external/embree/include")
-list(APPEND SHARED_LIBRARIES "embree")
+#MESSAGE("===add subdirectory embree===")
+#MESSAGe(${CMAKE_CXX_COMPILER})
+#MESSAGe(${CMAKE_C_COMPILER})
+#add_subdirectory("../external/embree/" "embree")
+#MESSAGe(${CMAKE_CXX_COMPILER})
+#MESSAGe(${CMAKE_C_COMPILER})
+#MESSAGE("===done===")
+#include_directories("../external/embree/include")
+#list(APPEND SHARED_LIBRARIES "embree")
 
 # endif(True)
 
@@ -194,8 +200,10 @@ endif(MATLAB_FOUND)
 add_subdirectory("604_Triangle")
 add_subdirectory("605_Tetgen")
 
-add_subdirectory("606_AmbientOcclusion")
-add_subdirectory("607_Picking")
+if (EMBREE_FOUND)
+  add_subdirectory("606_AmbientOcclusion")
+  add_subdirectory("607_Picking")
+endif (EMBREE_FOUND)
 
 if(LIM_FOUND)
   add_subdirectory("608_LIM")