1# Copyright 2022 Google LLC 2# 3# This source code is licensed under the BSD-style license found in the 4# LICENSE file in the root directory of this source tree. 5 6SET(CMAKE_SYSTEM_NAME Linux) 7SET(CMAKE_SYSTEM_PROCESSOR armv7l) 8SET(CMAKE_CROSSCOMPILING TRUE) 9 10SET(CMAKE_C_COMPILER "arm-linux-gnueabihf-gcc") 11SET(CMAKE_ASM_COMPILER "arm-linux-gnueabihf-gcc") 12SET(CMAKE_CXX_COMPILER "arm-linux-gnueabihf-g++") 13 14SET(CMAKE_FIND_ROOT_PATH "/usr/arm-linux-gnueabihf") 15SET(CMAKE_INCLUDE_PATH "/usr/include/arm-linux-gnueabihf") 16SET(CMAKE_LIBRARY_PATH "/usr/lib/arm-linux-gnueabihf") 17SET(CMAKE_PROGRAM_PATH "/usr/bin/arm-linux-gnueabihf") 18 19SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) 20SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) 21SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) 22SET(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) 23 24SET(CMAKE_CROSSCOMPILING_EMULATOR "qemu-arm;-L;/usr/arm-linux-gnueabihf") 25