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

add_definitions(-DIN_OV_COMPONENT)

if(CMAKE_COMPILER_IS_GNUCXX OR OV_COMPILER_IS_CLANG)
    ov_add_compiler_flags(-Wmissing-declarations)
endif()

if(OV_COMPILER_IS_INTEL_LLVM)
    ov_disable_deprecated_warnings()
endif()

# Disable adhoc codesign on Apple AARCH64 by default for internal builds.
# For community distribution channels (e.g. conda, brew), enable it via -DOV_FORCE_ADHOC_SIGN=ON.
if(APPLE AND AARCH64 AND NOT OV_FORCE_ADHOC_SIGN)
    set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-no_adhoc_codesign")
endif()


include(cmake/install_tbb.cmake)

# CC library should be registered before other cc targets
add_subdirectory(common)
add_subdirectory(core)
add_subdirectory(frontends)

add_subdirectory(plugins)
add_subdirectory(inference)
include(cmake/openvino.cmake)
add_subdirectory(bindings)

if(ENABLE_TESTS)
    add_subdirectory(core/tests)
    add_subdirectory(tests)
endif()
