XDND support now can be disabled using WITH_GHOST_XDND=OFF with CMake and WITH_GHOST_...
[blender.git] / intern / ghost / CMakeLists.txt
index 3d65f4972c40cfab7c361d3125aa667f65898261..5693aea08658c14a80ce8e78dfa4228a37c225a7 100644 (file)
@@ -220,18 +220,26 @@ elseif(UNIX)
                intern/GHOST_SystemX11.cpp
                intern/GHOST_SystemPathsX11.cpp
                intern/GHOST_WindowX11.cpp
-               intern/GHOST_DropTargetX11.cpp
 
                intern/GHOST_DisplayManagerX11.h
                intern/GHOST_SystemX11.h
                intern/GHOST_SystemPathsX11.h
                intern/GHOST_WindowX11.h
-               intern/GHOST_DropTargetX11.h
        )
 
-       list(APPEND INC
-               ../../extern/xdnd
-       )
+       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)