mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-09 19:10:15 +08:00

It would make the build system more simple, and the cross toolchains would do the rest to you. Toolchains like buildroot default not enable the __gnu_linux__ marco in the pre-processor will surfure from the systsm unknown problem. You should enable the marco in building toolchains or have a look on those scripts in build directory. Change-Id: I8f6af3391aa3d94d602ec8d84ba5e43839859169 Signed-off-by: Randy Li <randy.li@rock-chips.com>
13 lines
318 B
CMake
13 lines
318 B
CMake
|
|
cmake_minimum_required( VERSION 2.6.3 )
|
|
|
|
SET(CMAKE_SYSTEM_NAME Linux)
|
|
SET(CMAKE_C_COMPILER "arm-linux-gcc")
|
|
SET(CMAKE_CXX_COMPILER "arm-linux-g++")
|
|
#SET(CMAKE_SYSTEM_PROCESSOR "armv7-a")
|
|
SET(CMAKE_SYSTEM_PROCESSOR "armv7-a_hardfp")
|
|
|
|
add_definitions(-fPIC)
|
|
add_definitions(-DARMLINUX)
|
|
add_definitions(-D__gnu_linux__)
|