XDND support now can be disabled using WITH_GHOST_XDND=OFF with CMake and WITH_GHOST_...
[blender.git] / intern / ghost / CMakeLists.txt
index a84ff5825a930cf8a7d54456fcc9d8321fdacd32..5693aea08658c14a80ce8e78dfa4228a37c225a7 100644 (file)
@@ -227,6 +227,20 @@ elseif(UNIX)
                intern/GHOST_WindowX11.h
        )
 
+       if(WITH_GHOST_XDND)
+               add_definitions(-DWITH_XDND)
+
+               list(APPEND INC
+                       ../../extern/xdnd
+               )
+
+               list(APPEND SRC
+                       intern/GHOST_DropTargetX11.cpp
+
+                       intern/GHOST_DropTargetX11.h
+               )
+       endif()
+
        if(X11_XF86keysym_INCLUDE_PATH)
                add_definitions(-DWITH_XF86KEYSYM)
                list(APPEND INC_SYS
@@ -234,6 +248,13 @@ elseif(UNIX)
                )
        endif()
 
+       if(WITH_X11_XF86VMODE)
+               add_definitions(-DWITH_X11_XF86VMODE)
+               list(APPEND INC_SYS
+                       ${X11_xf86vmode_INCLUDE_PATH}
+               )
+       endif()
+
        if(WITH_INPUT_NDOF)
                list(APPEND SRC
                        intern/GHOST_NDOFManagerX11.cpp