synched with trunk at revision 36569
[blender.git] / extern / CMakeLists.txt
index 6ce4994..7a59e41 100644 (file)
@@ -31,15 +31,20 @@ if(WITH_BULLET)
        add_subdirectory(bullet2)
 endif()
 
-if(CMAKE_SYSTEM_NAME MATCHES "Linux")
+if(WITH_MOD_CLOTH_ELTOPO)
+       add_subdirectory(eltopo)
+endif()
+
+if(WITH_BINRELOC)
        add_subdirectory(binreloc)
 endif()
 
-add_subdirectory(glew)
+if(WITH_BUILTIN_GLEW)
+       add_subdirectory(glew)
+endif()
 add_subdirectory(recastnavigation)
 
-
-if(WITH_IMAGE_OPENJPEG)
+if(WITH_IMAGE_OPENJPEG AND (NOT UNIX OR APPLE))
        add_subdirectory(libopenjpeg)
 endif()