32 lines
684 B
CMake
32 lines
684 B
CMake
|
|
INCLUDE(CMakeForceCompiler)
|
|
|
|
set(CMAKE_C_COMPILER gcc)
|
|
set(CMAKE_CXX_COMPILER g++)
|
|
|
|
# path to compiler and utilities
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
|
|
|
|
|
|
|
|
|
# Name of the target platform
|
|
set(CMAKE_SYSTEM_NAME Linux)
|
|
set(CMAKE_SYSTEM_PROCESSOR arm)
|
|
|
|
# Version of the system
|
|
set(CMAKE_SYSTEM_VERSION 1)
|
|
|
|
|
|
add_definitions(-Wall -O2 -Os)
|
|
add_definitions(-Wno-unused-local-typedefs)
|
|
add_definitions(-Wstrict-aliasing -Wwrite-strings)
|
|
|
|
|
|
set(TOOLCHAIN_NAME arm-linux-gnueabihf)
|
|
|
|
|
|
set(TARGET_PLATFORM "linux")
|
|
set(AT_COMMAND_PATH "${CMAKE_SOURCE_DIR}/at-command/eg91") |