- include pthreads for win32 globally (as with opengl).
[blender-staging.git] / source / blender / windowmanager / CMakeLists.txt
index 1919bf8e5712371864b85e51f9082e80749b508b..e47d85cd4621ca1c385711134dfe47a8213f32d9 100644 (file)
@@ -24,8 +24,6 @@
 #
 # ***** END GPL LICENSE BLOCK *****
 
-FILE(GLOB SRC intern/*.c)
-
 SET(INC
        .
        ../nodes
@@ -35,7 +33,6 @@ SET(INC
        ../makesdna
        ../makesrna
        ../blenkernel
-       ../include
        ../imbuf
        ../blenloader
        ../editors/include
@@ -50,6 +47,23 @@ SET(INC
        ${OPENGL_INCLUDE_DIR}
 )
 
+SET(SRC
+       intern/wm.c
+       intern/wm_apple.c
+       intern/wm_cursors.c
+       intern/wm_dragdrop.c
+       intern/wm_draw.c
+       intern/wm_event_system.c
+       intern/wm_files.c
+       intern/wm_gesture.c
+       intern/wm_init_exit.c
+       intern/wm_jobs.c
+       intern/wm_keymap.c
+       intern/wm_operators.c
+       intern/wm_subwindow.c
+       intern/wm_window.c
+)
+
 ADD_DEFINITIONS(-DGLEW_STATIC)
 
 IF(WITH_INTERNATIONAL)
@@ -72,13 +86,12 @@ ENDIF(WITH_FFMPEG)
 
 IF(WITH_PYTHON)
        LIST(APPEND INC ../python ${PYTHON_INC})
-ELSE(WITH_PYTHON)
-       ADD_DEFINITIONS(-DDISABLE_PYTHON)
+       ADD_DEFINITIONS(-DWITH_PYTHON)
 ENDIF(WITH_PYTHON)
 
-IF(WIN32)
-       LIST(APPEND INC ${PTHREADS_INC})
-ENDIF(WIN32)
+IF(WITH_GAMEENGINE)
+       ADD_DEFINITIONS(-DWITH_GAMEENGINE)
+ENDIF(WITH_GAMEENGINE)
 
 IF(WITH_COCOA)
        LIST(REMOVE_ITEM SRC "${CMAKE_CURRENT_SOURCE_DIR}/intern/wm_apple.c")