summaryrefslogtreecommitdiff
path: root/indra/cmake/DragDrop.cmake
blob: 739d011813a84c693a92c446b5e6e8fd07e6c469 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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)