From d4df9bb9f2dbb073f4302035ffe7386c858e2adb Mon Sep 17 00:00:00 2001 From: "Bernardo A. Rodrigues" Date: Fri, 6 Mar 2020 14:44:50 +0100 Subject: [PATCH] mkdir cmake; mv rpi.cmake cmake --- cmake/rpi.cmake | 17 +++++++++++++++++ rpi.cmake | 17 ----------------- 2 files changed, 17 insertions(+), 17 deletions(-) create mode 100644 cmake/rpi.cmake delete mode 100644 rpi.cmake diff --git a/cmake/rpi.cmake b/cmake/rpi.cmake new file mode 100644 index 0000000..f6f1b79 --- /dev/null +++ b/cmake/rpi.cmake @@ -0,0 +1,17 @@ +# Define our host system +SET(CMAKE_SYSTEM_NAME Linux) +SET(CMAKE_SYSTEM_VERSION 1) + +# Define the cross compiler location inside edi +SET(CMAKE_C_COMPILER /usr/bin/arm-linux-gnueabihf-gcc) +SET(CMAKE_CXX_COMPILER /usr/bin/arm-linux-gnueabihf-gcc) + +# Define edi sysroot +SET(CMAKE_FIND_ROOT_PATH /) + +# Use our definitions for compiler tools +SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +# Search for libraries and headers in the target directories only +SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +add_definitions(-Wall) diff --git a/rpi.cmake b/rpi.cmake deleted file mode 100644 index f6f1b79..0000000 --- a/rpi.cmake +++ /dev/null @@ -1,17 +0,0 @@ -# Define our host system -SET(CMAKE_SYSTEM_NAME Linux) -SET(CMAKE_SYSTEM_VERSION 1) - -# Define the cross compiler location inside edi -SET(CMAKE_C_COMPILER /usr/bin/arm-linux-gnueabihf-gcc) -SET(CMAKE_CXX_COMPILER /usr/bin/arm-linux-gnueabihf-gcc) - -# Define edi sysroot -SET(CMAKE_FIND_ROOT_PATH /) - -# Use our definitions for compiler tools -SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) -# Search for libraries and headers in the target directories only -SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) -SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) -add_definitions(-Wall)