Fix cmake building of blender player.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Sun, 31 Oct 2010 12:31:15 +0000 (12:31 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Sun, 31 Oct 2010 12:31:15 +0000 (12:31 +0000)
source/gameengine/GamePlayer/common/CMakeLists.txt
source/gameengine/GamePlayer/ghost/CMakeLists.txt

index 02c0cb8a83c3e7e806aeeec3d49e21cfb2efe0a1..39667a27c7d5b49e679f67326cff6c06a74602a9 100644 (file)
@@ -69,6 +69,11 @@ SET(SRC
        GPC_System.cpp
 )
 
+IF(WITH_PYTHON)
+       LIST(APPEND INC ${PYTHON_INC})
+       ADD_DEFINITIONS(-DWITH_PYTHON)
+ENDIF(WITH_PYTHON)
+
 ADD_DEFINITIONS(-DGLEW_STATIC)
 
 BLENDERLIB_NOLIST(gp_common "${SRC}" "${INC}")
index b6e381359df26614531466c558740b3a46b12f48..e02a8a53ba228c6bb5c5a2820b815484cdc0d570 100644 (file)
@@ -70,4 +70,9 @@ IF(WITH_FFMPEG)
        ADD_DEFINITIONS(-DWITH_FFMPEG)
 ENDIF(WITH_FFMPEG)
 
+IF(WITH_PYTHON)
+       LIST(APPEND INC ${PYTHON_INC})
+       ADD_DEFINITIONS(-DWITH_PYTHON)
+ENDIF(WITH_PYTHON)
+
 BLENDERLIB_NOLIST(gp_ghost "${SRC}" "${INC}")