set(calib_files
  CalibrationExample.csv
)

paraview_add_plugin(InterpreterExamplePlugin
  REQUIRED_ON_CLIENT
  REQUIRED_ON_SERVER
  VERSION "2.0"
  MODULES
    InterpreterExamplePlugin::ExamplePacketInterpreters
  MODULE_FILES
    "${CMAKE_CURRENT_SOURCE_DIR}/ExamplePacketInterpreters/vtk.module"
  UI_INTERFACES ${interfaces}
  SOURCES ${sources}
  SERVER_MANAGER_XML
    "${CMAKE_CURRENT_SOURCE_DIR}/ExampleProxies.xml"
)

# Copy the calibration to the build folder
foreach(file ${calib_files})
  configure_file("CalibrationFiles/${file}" "${PROJECT_BINARY_DIR}/share/${file}" COPYONLY)
endforeach()

# Install step
foreach(file ${calib_files})
  install(
    FILES "${PROJECT_BINARY_DIR}/share/${file}"
    DESTINATION "share"
  )
endforeach()
