XDND support now can be disabled using WITH_GHOST_XDND=OFF with CMake and WITH_GHOST_...
[blender.git] / intern / ghost / CMakeLists.txt
index e028c4e691273966c1abea419344976eef6b08d0..5693aea08658c14a80ce8e78dfa4228a37c225a7 100644 (file)
@@ -1,4 +1,3 @@
-# $Id$
 # ***** BEGIN GPL LICENSE BLOCK *****
 #
 # This program is free software; you can redistribute it and/or
@@ -109,6 +108,10 @@ if(WITH_INPUT_NDOF)
        )
 endif()
 
+if(WITH_XDG_USER_DIRS)
+       add_definitions(-DWITH_XDG_USER_DIRS)
+endif()
+
 if(WITH_HEADLESS OR WITH_GHOST_SDL)
        if(WITH_HEADLESS)
                list(APPEND SRC
@@ -224,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
@@ -231,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