summaryrefslogtreecommitdiff
path: root/indra/cmake
diff options
context:
space:
mode:
authorRick Pasetto <rick@lindenlab.com>2009-11-25 09:53:24 -0800
committerRick Pasetto <rick@lindenlab.com>2009-11-25 09:53:24 -0800
commit46b36d4fde4de97cd9960553ea77a64fbbe34b6a (patch)
treeea516ac8232510ab03c009734d58a2a4ab959194 /indra/cmake
parent57bc7dc44f31ef132a4abec228459c490c425eed (diff)
parent97af20b4ba4a400569e99a616fc026190d3eec6c (diff)
merge
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..739d011813
--- /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"
+ ON)
+
+ 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)