# Copyright (C) 2018-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#

add_subdirectory(unit)

if(ENABLE_FUNCTIONAL_TESTS)
    function(ov_cpu_func_tests)
        if(CMAKE_COMPILER_IS_GNUCXX)
            ov_add_compiler_flags(-Wno-unused-function)
            ov_add_compiler_flags(-Wno-parentheses)
            ov_add_compiler_flags(-Wno-unused-local-typedefs)
            ov_add_compiler_flags(-Wno-reorder)
            ov_add_compiler_flags(-Wno-comment)
            ov_add_compiler_flags(-Wno-unused-local-typedefs)
        endif()
        if(CMAKE_COMPILER_IS_GNUCXX OR OV_COMPILER_IS_CLANG AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 13.0)
            ov_add_compiler_flags(-Wno-unused-but-set-variable)
        endif()

        add_subdirectory(functional)
    endfunction()

    ov_cpu_func_tests()
endif()
