include(test_driver.cmake)

list(APPEND BASIC_DEPS tudostat malloc_count tudocomp)

run_test(tudocomp_tests DEPS ${BASIC_DEPS})
run_test(ds_tests       DEPS ${BASIC_DEPS})

run_test(lz78_tests     DEPS ${BASIC_DEPS})
run_test(lzw_tests      DEPS ${BASIC_DEPS})
run_test(lzss_tests     DEPS ${BASIC_DEPS})

run_test(example_tests  DEPS ${BASIC_DEPS})


set(SANDBOX_CPP ${CMAKE_CURRENT_SOURCE_DIR}/sandbox_tests.cpp)
if(NOT EXISTS ${SANDBOX_CPP})
    file(READ ${CMAKE_SOURCE_DIR}/etc/sandbox_tests.cpp.template SANDBOX_TEMPLATE)
    file(WRITE ${SANDBOX_CPP} "${SANDBOX_TEMPLATE}")
endif()

    add_executable(mymain
        EXCLUDE_FROM_ALL
        main.cpp
    )
    target_link_libraries(mymain
        gtest
        glog
        ${TEST_TARGET_DEPS}
    )

run_test(sandbox_tests  DEPS ${BASIC_DEPS})

run_test(tudocomp_driver_tests
    DEPS     tudocomp_algorithms
    BIN_DEPS tudocomp_driver)
run_test(tudocomp_driver_algorithm_matrix_tests
    DEPS     tudocomp_algorithms
    BIN_DEPS tudocomp_driver)

include(test_driver.cmake)

list(APPEND BASIC_DEPS tudostat malloc_count tudocomp)

run_test(tudocomp_tests DEPS ${BASIC_DEPS})
run_test(ds_tests       DEPS ${BASIC_DEPS})

run_test(lz78_tests     DEPS ${BASIC_DEPS})
run_test(lzw_tests      DEPS ${BASIC_DEPS})
run_test(lzss_tests     DEPS ${BASIC_DEPS})

run_test(example_tests  DEPS ${BASIC_DEPS})


set(SANDBOX_CPP ${CMAKE_CURRENT_SOURCE_DIR}/sandbox_tests.cpp)
if(NOT EXISTS ${SANDBOX_CPP})
    file(READ ${CMAKE_SOURCE_DIR}/etc/sandbox_tests.cpp.template SANDBOX_TEMPLATE)
    file(WRITE ${SANDBOX_CPP} "${SANDBOX_TEMPLATE}")
endif()

run_test(sandbox_tests  DEPS ${BASIC_DEPS})

run_test(tudocomp_driver_tests
    DEPS     tudocomp_algorithms
    BIN_DEPS tudocomp_driver)
run_test(tudocomp_driver_algorithm_matrix_tests
    DEPS     tudocomp_algorithms
    BIN_DEPS tudocomp_driver)

Remove mymain target from tests
Remove mymain target from tests
