Skip to content

Instantly share code, notes, and snippets.

@ConnorChristie
Last active April 23, 2019 21:18
Show Gist options
  • Save ConnorChristie/de85261f2aaf2f1a5c8f5e62d89633cf to your computer and use it in GitHub Desktop.
Save ConnorChristie/de85261f2aaf2f1a5c8f5e62d89633cf to your computer and use it in GitHub Desktop.
SET(CMAKE_SYSTEM_NAME Linux)
SET(CMAKE_SYSTEM_VERSION 1)
SET(CMAKE_SYSTEM_PROCESSOR armv7l)
SET(FLOAT_ABI_SUFFIX "hf")
SET(GCC_COMPILER_VERSION "" CACHE STRING "GCC Compiler version")
SET(GNU_MACHINE "arm-linux-gnueabihf" CACHE STRING "GNU compiler triple")
# specify the cross compiler
SET(CMAKE_C_COMPILER /usr/bin/arm-linux-gnueabihf-gcc)
SET(CMAKE_CXX_COMPILER /usr/bin/arm-linux-gnueabihf-g++)
# where is the target environment
SET(CMAKE_FIND_ROOT_PATH /opt/intel/openvino/inference_engine/share /opt/intel/openvino/inference_engine /opt/intel/openvino/opencv)
# search for programs in the build host directories
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
# for libraries and headers in the target directories
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment