Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
DragDrop.cmake 470 B
# -*- cmake -*-

if (VIEWER)

  OPTION (OS_DRAG_DROP
  "Build the viewer with OS level drag and drop turned on or off"
  OFF)

  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)