project(PVQtJupyterPlugin)

set(interfaces)
set(sources
  pqJupyterCollaborationActions.cxx
  pqJupyterTraceReaction.cxx
)

paraview_plugin_add_action_group(
    CLASS_NAME pqJupyterCollaborationActions
    GROUP_NAME "ToolBar/JupyterPluginActions"
    INTERFACES action_interfaces
    SOURCES action_sources)
list(APPEND interfaces
  ${action_interfaces})
list(APPEND sources
  ${action_sources})

paraview_add_plugin(${PROJECT_NAME}
  VERSION "1.0"
  UI_INTERFACES ${interfaces}
  SOURCES ${sources})

# For some reason this is needed
target_link_libraries(${PROJECT_NAME} PRIVATE ParaView::pqApplicationComponents)
target_link_libraries(${PROJECT_NAME} PRIVATE ParaView::pqComponents)
target_link_libraries(${PROJECT_NAME} PRIVATE ParaView::pqPython)
target_link_libraries(${PROJECT_NAME} PRIVATE ParaView::RemotingServerManager)
