cmake option to disable SDL,
[blender.git] / source / gameengine / GameLogic / CMakeLists.txt
index 7e2bc85bd1f31aca5d79df8faf42b964230329ea..530664dce554ee083782f7686d7b7f6ef8d0d903 100644 (file)
@@ -35,8 +35,13 @@ SET(INC
   ../../../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] )