aboutsummaryrefslogtreecommitdiff
path: root/samples/ObjectDetection/cmake/arm-linux-gnueabihf-toolchain.cmake
blob: f66b964c35b20999e567934179039743b089dcf3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# 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")