project(drape_frontend_tests)

set(SRC
  area_shape_tests.cpp
  clip_splines_builder_tests.cpp
  frame_values_tests.cpp
  message_queue_tests.cpp
  my_position_controller_tests.cpp
  navigator_test.cpp
  path_text_test.cpp
  screen_operations_tests.cpp
  search_mark_overlay_filter_tests.cpp
  read_cancellation_tests.cpp
  shape_batch_tests.cpp
  stylist_tests.cpp
  terrain_shade_tests.cpp
  tile_background_coverage_tests.cpp
  tile_background_renderer_tests.cpp
  user_area_tests.cpp
  user_event_stream_tests.cpp
  user_line_render_params_tests.cpp
  visual_params_fixture.hpp
  visual_params_tests.cpp
)

if (BUILD_OPENGL_TESTS)
  list(APPEND SRC
    area_pattern_gpu_test.cpp
    path_text_gpu_test.cpp
    path_text_layout_gpu_test.cpp
    rainbow_line_gpu_test.cpp
    shape_test_fixture.cpp
    shape_test_fixture.hpp
    terrain_shade_gpu_test.cpp
    track_direction_gpu_test.cpp
    user_area_gpu_test.cpp
  )
endif()

omim_add_test(${PROJECT_NAME} ${SRC})

target_link_libraries(${PROJECT_NAME} PRIVATE drape_frontend kml qt_tstfrm)
