if(VTK_MYSQL_TEST_URL)
  configure_file(${CMAKE_CURRENT_SOURCE_DIR}/vtkIOMySQLTestingCxxConfigure.h.in
    ${CMAKE_CURRENT_BINARY_DIR}/vtkIOMySQLTestingCxxConfigure.h)

  include_directories(${CMAKE_CURRENT_BINARY_DIR})

  if(WIN32)
    set(TestMySQLTableReadWrite_ARGS
      DATA{../Data/Input/simple_table_win.vtk})
  else()
    set(TestMySQLTableReadWrite_ARGS
      DATA{../Data/Input/simple_table.vtk})
  endif()
  vtk_add_test_cxx(vtkIOMySQLCxxTests tests
    NO_DATA NO_VALID
    TestMySQLDatabase.cxx
    TestMySQLTableReadWrite.cxx
    )

  vtk_test_cxx_executable(vtkIOMySQLCxxTests tests)
endif()
