project(RemoteVizExamples)

set(OIV_MODULE RemoteViz)

if(OIV_ENABLE_REMOTEVIZ_SERVICES_EXAMPLES)
  set(services_examples
   HelloCone/HelloConeRenderingService
   BasicHTMLGUI/BasicHTMLGUIRenderingService
   BasicJQueryGUI/BasicJQueryGUIRenderingService
   ClientWorkbench/ClientWorkbenchRenderingService
   ConnectionManagement/ConnectionManagementRenderingService
   MobileApp/MobileAppRenderingService
   Monitoring/MonitoringCSV/CSVMonitoredRenderingService
   Monitoring/MonitoringGrafana/GrafanaMonitoredRenderingService
   SharedViewer/SharedViewerRenderingService
   SecureConnection/SecureConnectionRenderingService
   IndependentService/IndependentRenderingService
   HelloConeH264/HelloConeH264RenderingService
   HelloConeVP9/HelloConeVP9RenderingService
   LoadBalancing/LoadBalancedService
   FrontBackSync/FrontBackSyncRenderingService
  )

  if (NOT OIV_ENABLE_HEADLESS)
    list(APPEND services_examples InventorApplication/InventorApplicationRenderingService)
  endif()

  foreach(subdirectory ${services_examples})
    add_subdirectory(${subdirectory})
  endforeach()
endif()

if(OIV_ENABLE_REMOTEVIZ_CLIENT_EXAMPLES)
  set(client_examples
   RemoteVizClientNode
   RemoteVizScreenDrawer
  )

  foreach(subdirectory ${client_examples})
    add_subdirectory(${subdirectory})
  endforeach()
endif()
