File: CrossCompile.cmake

package info (click to toggle)
libcec 4.0.4%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,360 kB
  • sloc: cpp: 18,613; ansic: 1,961; python: 1,357; sh: 42; makefile: 13
file content (15 lines) | stat: -rw-r--r-- 596 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
SET(XCOMPILE_BASE_PATH ""                                 CACHE STRING "Path to the compiler")
SET(XCOMPILE_PREFIX    "arm-bcm2708hardfp-linux-gnueabi-" CACHE STRING "Toolchain prefix")
SET(XCOMPILE_LIB_PATH ""                                  CACHE STRING "Path to the libraries")

SET(CMAKE_SYSTEM_NAME Linux)
SET(CMAKE_SYSTEM_VERSION 1)

# specify the cross compiler
SET(CMAKE_C_COMPILER ${XCOMPILE_BASE_PATH}/bin/${XCOMPILE_PREFIX}gcc)

SET(CMAKE_CXX_COMPILER ${XCOMPILE_BASE_PATH}/bin/${XCOMPILE_PREFIX}g++)

# where is the target environment
SET(CMAKE_FIND_ROOT_PATH ${XCOMPILE_LIB_PATH})