if( HAVE_MARS2MARS )

configure_file(
    ${CMAKE_CURRENT_SOURCE_DIR}/mars2mars-test-requests.mars
    ${CMAKE_CURRENT_BINARY_DIR}/mars2mars-test-requests.mars
    COPYONLY
)

ecbuild_add_test(
    TARGET
        mars2mars-test-01

    SOURCES
        mars2mars-test-01.cc

    NO_AS_NEEDED

    LIBS
        eckit
        metkit
)

ecbuild_add_test(
    TARGET
        mars2mars-test-02

    SOURCES
        mars2mars-test-02.cc

    NO_AS_NEEDED

    LIBS
        eckit
        metkit
)

endif()
