summaryrefslogtreecommitdiff
path: root/indra/cmake
diff options
context:
space:
mode:
authorcallum <none@none>2009-11-18 21:15:44 -0800
committercallum <none@none>2009-11-18 21:15:44 -0800
commit4419e367bcbe8c1b248e88eab8096f0b8ac4707c (patch)
tree9539d6f09d1114c437086ae4977ffee260096cee /indra/cmake
parent778005a350308d51f114ece74b4e7f3e7af3d37e (diff)
Add support for removing the Windows specific drag/drop code
from the codebase via a new CMake file (DragDrop.cmake).
Diffstat (limited to 'indra/cmake')
-rw-r--r--indra/cmake/DragDrop.cmake25
1 files changed, 25 insertions, 0 deletions
diff --git a/indra/cmake/DragDrop.cmake b/indra/cmake/DragDrop.cmake
new file mode 100644
index 0000000000..a2d7df1312
--- /dev/null
+++ b/indra/cmake/DragDrop.cmake
@@ -0,0 +1,25 @@
+# -*- cmake -*-
+
+if (VIEWER)
+
+ OPTION (OS_DRAG_DROP
+ "Build the viewer with OS level drag and drop turned on or off"
+ OFF)
+
+ if (OS_DRAG_DROP)
+
+ if (WINDOWS)
+ add_definitions(-DLL_OS_DRAGDROP_ENABLED=1)
+ endif (WINDOWS)
+
+ if (DARWIN)
+ add_definitions(-DLL_OS_DRAGDROP_ENABLED=0)
+ endif (DARWIN)
+
+ if (LINUX)
+ add_definitions(-DLL_OS_DRAGDROP_ENABLED=0)
+ endif (LINUX)
+
+ endif (OS_DRAG_DROP)
+
+endif (VIEWER)