app_shared_test_src = $(addprefix apps/shared/,\
  continuous_function.cpp\
  continuous_function_cache.cpp \
  curve_view_cursor.cpp \
  curve_view_range.cpp \
  curve_view.cpp \
  dots.cpp \
  double_pair_store.cpp \
  expression_model.cpp \
  expression_model_handle.cpp \
  expression_model_store.cpp \
  function.cpp \
  global_context.cpp \
  interactive_curve_view_range.cpp \
  interactive_curve_view_range_delegate.cpp \
  labeled_curve_view.cpp \
  memoized_curve_view_range.cpp \
  range_1D.cpp \
  sequence.cpp\
  sequence_context.cpp\
  sequence_store.cpp\
  toolbox_helpers.cpp \
  zoom_and_pan_curve_view_controller.cpp \
  zoom_curve_view_controller.cpp \
)

app_shared_src = $(addprefix apps/shared/,\
  banner_view.cpp \
  buffer_function_title_cell.cpp \
  buffer_text_view_with_text_field.cpp \
  button_with_separator.cpp \
  cursor_view.cpp \
  editable_cell_table_view_controller.cpp \
  expression_field_delegate_app.cpp \
  expression_model_list_controller.cpp \
  float_parameter_controller.cpp \
  function_app.cpp \
  function_banner_delegate.cpp \
  function_curve_parameter_controller.cpp \
  function_expression_cell.cpp \
  function_graph_controller.cpp \
  function_graph_view.cpp \
  function_go_to_parameter_controller.cpp \
  function_list_controller.cpp \
  function_store.cpp \
  function_title_cell.cpp \
  function_zoom_and_pan_curve_view_controller.cpp \
  go_to_parameter_controller.cpp \
  hideable_even_odd_buffer_text_cell.cpp \
  hideable_even_odd_cell.cpp \
  hideable_even_odd_editable_text_cell.cpp \
  input_event_handler_delegate_app.cpp \
  interactive_curve_view_controller.cpp \
  interval.cpp \
  interval_parameter_controller.cpp \
  layout_field_delegate.cpp \
  list_parameter_controller.cpp \
  localization_controller.cpp \
  message_view.cpp \
  ok_view.cpp \
  parameter_text_field_delegate.cpp \
  discard_pop_up_controller.cpp \
  post_and_hardware_tests.cpp \
  range_parameter_controller.cpp \
  regular_table_view_data_source.cpp \
  round_cursor_view.cpp \
  scrollable_multiple_expressions_view.cpp \
  scrollable_two_expressions_cell.cpp \
  sequence.cpp\
  sequence_cache_context.cpp \
  sequence_context.cpp\
  sequence_store.cpp\
  sequence_title_cell.cpp \
  separable.cpp \
  separator_even_odd_buffer_text_cell.cpp \
  shared_app.cpp \
  simple_interactive_curve_view_controller.cpp \
  store_cell.cpp \
  store_controller.cpp \
  store_parameter_controller.cpp \
  store_selectable_table_view.cpp \
  store_title_cell.cpp \
  sum_graph_controller.cpp \
  tab_table_controller.cpp \
  text_field_delegate.cpp \
  text_field_delegate_app.cpp \
  text_field_with_extension.cpp \
  text_helpers.cpp \
  values_controller.cpp \
  values_function_parameter_controller.cpp \
  values_parameter_controller.cpp \
  vertical_cursor_view.cpp \
  xy_banner_view.cpp\
)

app_shared_src += $(app_shared_test_src)
apps_src += $(app_shared_src)

# The .cpp files could also be added to app_shared_test_src in their respective makefiles
#     -> it would then be impossible to run the shared test alone
app_shared_test_src += $(addprefix apps/graph/,\
  continuous_function_store.cpp\
)

app_shared_test_src += $(addprefix apps/shared/,\
  sequence.cpp \
  sequence_cache_context.cpp \
  sequence_context.cpp \
  sequence_store.cpp \
)

tests_src += $(addprefix apps/shared/test/,\
  function_alignement.cpp\
)
