Bugfix #27768
[blender.git] / source / blender / windowmanager / CMakeLists.txt
index 1a056b56eff2fa2c495352eae83c4b4246ceba2e..f9c1d800c02c4e0a77e2e57224881e33f01087fd 100644 (file)
@@ -37,19 +37,22 @@ set(INC
        ../blenloader
        ../editors/include
        ../render/extern/include
-       ../../kernel/gen_system
        ../../../intern/guardedalloc
        ../../../intern/memutil
        ../../../intern/elbeem/extern
        ../../../intern/ghost
        ../../../intern/opennl/extern
+       ../../../source/gameengine/BlenderRoutines
+)
+
+set(INC_SYS
+       ${ZLIB_INCLUDE_DIRS}
        ${OPENGL_INCLUDE_DIR}
        ${GLEW_INCLUDE_PATH}
 )
 
 set(SRC
        intern/wm.c
-       intern/wm_apple.c
        intern/wm_cursors.c
        intern/wm_dragdrop.c
        intern/wm_draw.c
@@ -86,17 +89,18 @@ if(WITH_OPENCOLLADA)
 endif()
 
 if(WITH_CODEC_QUICKTIME)
-       list(APPEND INC ../quicktime ${QUICKTIME_INC})
+       list(APPEND INC ../quicktime)
+       list(APPEND INC_SYS ${QUICKTIME_INCLUDE_DIRS})
        add_definitions(-DWITH_QUICKTIME)
 endif()
 
 if(WITH_CODEC_FFMPEG)
-       list(APPEND INC ${FFMPEG_INC})
+       list(APPEND INC_SYS ${FFMPEG_INCLUDE_DIRS})
        add_definitions(-DWITH_FFMPEG)
 endif()
 
 if(WITH_PYTHON)
-       list(APPEND INC ../python ${PYTHON_INCLUDE_DIRS})
+       list(APPEND INC ../python)
        add_definitions(-DWITH_PYTHON)
 
        if(WITH_PYTHON_SECURITY)
@@ -108,12 +112,16 @@ if(WITH_GAMEENGINE)
        add_definitions(-DWITH_GAMEENGINE)
 endif()
 
-if(WITH_COCOA)
-       list(REMOVE_ITEM SRC "${CMAKE_CURRENT_SOURCE_DIR}/intern/wm_apple.c")
+if(APPLE)
+       if(NOT WITH_COCOA)
+               list(APPEND SRC
+                       intern/wm_apple.c
+               )
+       endif()
 endif()
 
 if(WITH_BUILDINFO)
        add_definitions(-DNAN_BUILDINFO)
 endif()
 
-blender_add_lib_nolist(bf_windowmanager "${SRC}" "${INC}")
+blender_add_lib_nolist(bf_windowmanager "${SRC}" "${INC}" "${INC_SYS}")