# --------------------------------------------------------------------------------------------------------
# Copyright (c) 2006-2023, Knut Reinert & Freie Universität Berlin
# Copyright (c) 2016-2023, Knut Reinert & MPI für molekulare Genetik
# This file may be used, modified and/or redistributed under the terms of the 3-clause BSD-License
# shipped with this file and also available at: https://github.com/seqan/sharg-parser/blob/main/LICENSE.md
# --------------------------------------------------------------------------------------------------------

find_path (SHARG_TEST_LICENSE_DIR
           NAMES LICENSE.md
           HINTS "${SHARG_CLONE_DIR}")

add_definitions (-DSHARG_TEST_LICENSE_DIR="${SHARG_TEST_LICENSE_DIR}")

sharg_test (format_help_test.cpp CYCLIC_DEPENDING_INCLUDES include-sharg-detail-format_html.hpp
                                                           include-sharg-detail-format_man.hpp)
sharg_test (format_html_test.cpp CYCLIC_DEPENDING_INCLUDES include-sharg-detail-format_help.hpp
                                                           include-sharg-detail-format_man.hpp)
sharg_test (format_man_test.cpp)
sharg_test (format_ctd_test.cpp)
sharg_test (format_cwl_test.cpp)
sharg_test (safe_filesystem_entry_test.cpp)
sharg_test (type_name_as_string_test.cpp)
sharg_test (version_check_debug_test.cpp)
sharg_test (version_check_release_test.cpp)

file (DOWNLOAD https://raw.githubusercontent.com/seqan/seqan3/master/include/seqan3/version.hpp
      ${CMAKE_BINARY_DIR}/include/seqan3/version.hpp)
sharg_test (seqan3_test.cpp)
target_include_directories (seqan3_test SYSTEM PUBLIC ${CMAKE_BINARY_DIR}/include)
