Brooklyn/arch/arm/ARMnn/samples/common/cmake/arm-linux-gnueabihf-toolchain.cmake
2022-04-02 18:06:56 +05:00

20 lines
647 B
CMake

# Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
# SPDX-License-Identifier: MIT
# specify the cross compiler
set(GNU_MACHINE "arm-linux-gnueabihf")
set(CROSS_PREFIX "arm-linux-gnueabihf-")
set(CMAKE_C_COMPILER ${CROSS_PREFIX}gcc)
set(CMAKE_CXX_COMPILER ${CROSS_PREFIX}g++)
set(CMAKE_AR ${CROSS_PREFIX}ar)
set(CMAKE_STRIP ${CROSS_PREFIX}strip)
set(CMAKE_LINKER ${CROSS_PREFIX}ld)
set(CMAKE_CROSSCOMPILING true)
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR arm)
set(OPENCV_EXTRA_ARGS "-DENABLE_NEON=ON"
"-DCMAKE_TOOLCHAIN_FILE=platforms/linux/arm.toolchain.cmake")