summaryrefslogtreecommitdiff
path: root/indra/cmake
diff options
context:
space:
mode:
authorRick Pasetto <rick@lindenlab.com>2010-01-25 09:13:34 -0800
committerRick Pasetto <rick@lindenlab.com>2010-01-25 09:13:34 -0800
commitd451a515c8fe096a2096ca421acc21cd7e4644fb (patch)
tree40cbba8c04fae7cefd71c925b0e29963999777a0 /indra/cmake
parentf11f8b34478f0d408689fe7959f233567001374d (diff)
parent927b8da7e9f736e4d142dfc4772d80316f51cc93 (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)