find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Widgets QUIET)

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

  add_oiv_executable_notest(${PROJECT_NAME} MedicalMPRViewer.cxx MySceneExaminer.h MySceneExaminer.cxx MyRenderAreaInteractive.cxx MyRenderAreaInteractive.h)

  target_link_libraries (${PROJECT_NAME}
	${OpenInventorMedical_LIBRARIES}
	${OpenInventorQt_LIBRARIES}
	${VolumeViz_LIBRARIES}
	${DialogViz_LIBRARIES}
	${OpenInventorViewerComponents_LIBRARIES}
	${OpenInventorQtViewerComponents_LIBRARIES}
	Qt::Widgets
	)
  if (${QT_VERSION_MAJOR} EQUAL 6)
    qt_allow_non_utf8_sources(${PROJECT_NAME})
  endif()
endif()

