• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
2# SPDX-License-Identifier: MIT
3
4# specify the cross compiler
5set(GNU_MACHINE "aarch64-linux-gnu")
6set(CROSS_PREFIX "aarch64-linux-gnu-")
7
8set(CMAKE_C_COMPILER   ${CROSS_PREFIX}gcc)
9set(CMAKE_CXX_COMPILER ${CROSS_PREFIX}g++)
10set(CMAKE_AR           ${CROSS_PREFIX}ar)
11set(CMAKE_STRIP        ${CROSS_PREFIX}strip)
12set(CMAKE_LINKER       ${CROSS_PREFIX}ld)
13
14set(CMAKE_CROSSCOMPILING true)
15set(CMAKE_SYSTEM_NAME Linux)
16
17set(CMAKE_SYSTEM_PROCESSOR aarch64)
18
19set(OPENCV_EXTRA_ARGS   "-DENABLE_NEON=ON"
20                        "-DCMAKE_TOOLCHAIN_FILE=platforms/linux/aarch64-gnu.toolchain.cmake")