summaryrefslogtreecommitdiff
path: root/indra/cmake
diff options
context:
space:
mode:
authorEli Linden <eli@lindenlab.com>2010-02-02 11:32:33 -0800
committerEli Linden <eli@lindenlab.com>2010-02-02 11:32:33 -0800
commita4d81d0f6995ad52f3c0fc094d93f8652600abbd (patch)
tree9fcc82ba3061423c971f56aa70b8447de2677237 /indra/cmake
parent3fde73508e5b2fb5507b47d1f56d3fb47162b6fc (diff)
parentb90d1d0b6f60684ba2e97959c6a9d2df0ff8ec79 (diff)
Merge
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..c0424396e5
--- /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)