Added WITH_PYTHON as a cmake option
[blender.git] / source / blender / editors / screen / CMakeLists.txt
index da0475cebdd4847156f378ef354238e0b17bac73..c6d1288cf4f2becb793cdbf7298158d57d864b63 100644 (file)
@@ -36,12 +36,11 @@ SET(INC ../../windowmanager
   ../../include ../../../../intern/bmfont ../../imbuf 
   ../../render/extern/include ../../../../intern/bsp/extern 
   ../../radiosity/extern/include
-  ../../../intern/decimation/extern ../../blenloader ../../python
+  ../../../intern/decimation/extern ../../blenloader
   ../../../kernel/gen_system ../../../../intern/SoundSystem ../../readstreamglue
   ../../quicktime ../../../../intern/elbeem/extern
   ../../../../intern/ghost ../../../../intern/opennl/extern
   ../../nodes
-  ${PYTHON_INC}
   ${SDL_INC}
 )
 
@@ -65,6 +64,12 @@ IF(WITH_FFMPEG)
   ADD_DEFINITIONS(-DWITH_FFMPEG)
 ENDIF(WITH_FFMPEG)
 
+IF(WITH_PYTHON)
+  SET(INC ${INC} ../../python ${PYTHON_INC})
+ELSE(WITH_PYTHON)
+  ADD_DEFINITIONS(-DDISABLE_PYTHON)
+ENDIF(WITH_PYTHON)
+
 IF(WIN32)
   SET(INC ${INC} ${PTHREADS_INC})
 ENDIF(WIN32)