include(FetchContent)
FetchContent_Declare(
        googletest
        URL file:////usr/bin/xTuning-devtools/data_amount-1.0.0/googletest-1.13.0.tar.gz
)
# For Windows: Prevent overriding the parent project's compiler/linker settings
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(googletest)


add_executable(
        data_quantity_test
        test_data_quantity.cpp
)
target_link_libraries(
        data_quantity_test
        GTest::gtest_main
        KunlunUtils
)

add_executable(
        tiling_algorithm_test
        test_tiling_algorithm.cpp
)
target_link_libraries(
        tiling_algorithm_test
        GTest::gtest_main
        KunlunUtils
)

add_executable(
        test_fake_LocalTensor
        test_fake_LocalTensor.cpp
)
target_link_libraries(
        test_fake_LocalTensor
        GTest::gtest_main
        KunlunUtils
)

include(GoogleTest)
gtest_discover_tests(data_quantity_test)
gtest_discover_tests(tiling_algorithm_test)
gtest_discover_tests(test_fake_LocalTensor)

include(compile_tests/compile_tests.cmake)
