This file looks large and may slow your browser down if we attempt
to syntax highlight it, so we are showing it without any
pretty colors.
Highlight
it anyway.
| 1 |
|
| 2 |
# this one is important |
| 3 |
SET(CMAKE_SYSTEM_NAME Linux) |
| 4 |
#this one not so much |
| 5 |
SET(CMAKE_SYSTEM_VERSION 1) |
| 6 |
|
| 7 |
# specify the cross compiler |
| 8 |
SET(COMPILER_PREFIX /opt/emlix/picocom1/bin/arm-linux-gnueabi-) |
| 9 |
SET(BOARD_SYSROOT /opt/emlix/picocom1/sysroot/) |
| 10 |
SET(LOCAL_SYSROOT /home/patrick/test/sysroot/) |
| 11 |
|
| 12 |
SET(CMAKE_C_COMPILER "${COMPILER_PREFIX}gcc") |
| 13 |
SET(CAKE_CXX_COMPILER "${COMPILER_PREFIX}g++") |
| 14 |
|
| 15 |
include_directories(${LOCAL_SYSROOT}include/ ${BOARD_SYSROOT}include/) |
| 16 |
link_directories(${LOCAL_SYSROOT}lib ${BOARD_SYSROOT}lib) |
| 17 |
|
| 18 |
# where is the target environment |
| 19 |
SET(CMAKE_FIND_ROOT_PATH ${BOARD_SYSROOT} ${LOCAL_SYSROOT}) |
| 20 |
|
| 21 |
# search for programs in the build host directories |
| 22 |
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) |
| 23 |
# for libraries and headers in the target directories |
| 24 |
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) |
| 25 |
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) |