find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Widgets QUIET)

if (Qt${QT_VERSION_MAJOR}Widgets_FOUND)
  project(DragGestureRecognizer)

  #Ask CMake to automoc needed includes
  set(CMAKE_AUTOMOC ON)
  set(CMAKE_INCLUDE_CURRENT_DIR ON)

  add_oiv_qt_executable(${PROJECT_NAME}
    DragGestureRecognizer.cxx
    SoDragGestureEvent.cxx
    SoDragGestureRecognizer.cxx

	#These includes will be mocced
	SoDragGestureEvent.h
    SoDragGestureRecognizer.h
  )
  target_link_libraries(${PROJECT_NAME}
		${OpenInventorQt_LIBRARIES}
		${OpenInventorGui_LIBRARIES}
		${DialogViz_LIBRARIES}
		Qt::Widgets
	)
endif()
