if(OIV_ENABLE_QT_DEMOS)
  find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Widgets OpenGL QUIET)
  if (Qt${QT_VERSION_MAJOR}Widgets_FOUND)
    project(PhysicalMaterial)

    set(CMAKE_INCLUDE_CURRENT_DIR ON)
    set(CMAKE_AUTOUIC ON)
    set(CMAKE_AUTOMOC ON)

    add_oiv_qt_executable_notest(${PROJECT_NAME}
      PhysicalMaterial.cxx
      PhysicalMaterialWidget.h
      PhysicalMaterialWidget.cxx
      PhysicalMaterialWidget.ui
    )

    target_link_libraries(${PROJECT_NAME} ${OpenInventorQtViewerComponents_LIBRARIES} Qt::Widgets Qt::OpenGL)
  endif()
endif()
