File: CrossCompile.cmake

package info (click to toggle)
libcec 4.0.1%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,292 kB
  • ctags: 4,411
  • sloc: cpp: 18,540; ansic: 1,961; python: 386; xml: 245; sh: 42; makefile: 12
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})