set(MULTIARCH_TUPLE "armv7l-unknown-linux-gnueabihf")
set(TOOLCHAIN_ROOT "/opt/${MULTIARCH_TUPLE}")
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_VERSION 1)
set(CMAKE_PREFIX_PATH ${CMAKE_SOURCE_DIR}/staging/${MULTIARCH_TUPLE})
set(CMAKE_SYSROOT "${TOOLCHAIN_ROOT}/arm-unknown-linux-gnueabihf/sysroot")
set(CMAKE_AR "${TOOLCHAIN_ROOT}/arm-unknown-linux-gnueabihf/bin/ar")
set(CMAKE_C_COMPILER "${TOOLCHAIN_ROOT}/bin/${MULTIARCH_TUPLE}-gcc")
set(CMAKE_CXX_COMPILER "${TOOLCHAIN_ROOT}/bin/${MULTIARCH_TUPLE}-g++")
set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_ROOT}")
set(CMAKE_FIND_ROOT_PATH "${CMAKE_SYSROOT}")
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY BOTH)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE BOTH)