cmake option to disable SDL,
[blender.git] / source / gameengine / GameLogic / CMakeLists.txt
index 449aae3ac849f176dd024489e55921e8c6767e34..530664dce554ee083782f7686d7b7f6ef8d0d903 100644 (file)
@@ -31,12 +31,17 @@ SET(INC
   ../../../source/kernel/gen_system 
   ../../../intern/string
   ../../../source/gameengine/Expressions 
-  ../../../source/gameengine/Scenegraph
+  ../../../source/gameengine/SceneGraph
   ../../../intern/moto/include
   ../../../source/gameengine/Rasterizer
   ${PYTHON_INC}
-  ${SDL_INC}
 )
 
+IF(WITH_SDL)
+  SET(INC ${INC} ${SDL_INC})  
+ELSE(WITH_SDL)
+  ADD_DEFINITIONS(-DDISABLE_SDL)
+ENDIF(WITH_SDL)
+
 BLENDERLIB(bf_logic "${SRC}" "${INC}")
 #env.BlenderLib ( 'bf_logic', sources, Split(incs), [], libtype=['game','player'], priority=[30, 110] )