summaryrefslogtreecommitdiff
path: root/indra/cmake
diff options
context:
space:
mode:
authorRick Pasetto <rick@lindenlab.com>2010-01-25 10:05:31 -0800
committerRick Pasetto <rick@lindenlab.com>2010-01-25 10:05:31 -0800
commita08ae0fa802dcef959192665062a9a9045b12ad0 (patch)
tree3f45c94eb79dfa59aba7201f8f0c2757c56da51f /indra/cmake
parent1d512c599a8dfedcf93d7b1aadb8d85ad0d7de64 (diff)
parentd451a515c8fe096a2096ca421acc21cd7e4644fb (diff)
Automated merge with ssh://rick@hg.lindenlab.com/viewer/viewer-2-0/
Diffstat (limited to 'indra/cmake')
-rw-r--r--indra/cmake/DragDrop.cmake23
1 files changed, 23 insertions, 0 deletions
diff --git a/indra/cmake/DragDrop.cmake b/indra/cmake/DragDrop.cmake
new file mode 100644
index 0000000000..e56264f187
--- /dev/null
+++ b/indra/cmake/DragDrop.cmake
@@ -0,0 +1,23 @@
+# -*- cmake -*-
+
+if (VIEWER)
+
+ set(OS_DRAG_DROP ON CACHE BOOL "Build the viewer with OS level drag and drop turned on or off")
+
+ if (OS_DRAG_DROP)
+
+ if (WINDOWS)
+ add_definitions(-DLL_OS_DRAGDROP_ENABLED=1)
+ endif (WINDOWS)
+
+ if (DARWIN)
+ add_definitions(-DLL_OS_DRAGDROP_ENABLED=1)
+ endif (DARWIN)
+
+ if (LINUX)
+ add_definitions(-DLL_OS_DRAGDROP_ENABLED=0)
+ endif (LINUX)
+
+ endif (OS_DRAG_DROP)
+
+endif (VIEWER)