summaryrefslogtreecommitdiff
path: root/Toolchain/arm-linux.cmake
diff options
context:
space:
mode:
authorPierre GRANDIN <pgrandin@users.noreply.github.com>2016-10-26 10:51:32 -0700
committerGitHub <noreply@github.com>2016-10-26 10:51:32 -0700
commit5fbef56af22f2a62229b919b484de421bc66aeef (patch)
treec25b82f906c5d49d6e1c688b5eb5e5bf4d174ddd /Toolchain/arm-linux.cmake
parentfd6ae907cb42161052993dd824cdc1ddec65a4e6 (diff)
parenta88b7545f8ff66e6c2c56fb0ff9df76cb01c89f1 (diff)
downloadnavit-5fbef56af22f2a62229b919b484de421bc66aeef.tar.gz
Merge pull request #119 from navit-gps/tomtom2
Tomtom2
Diffstat (limited to 'Toolchain/arm-linux.cmake')
-rw-r--r--Toolchain/arm-linux.cmake14
1 files changed, 14 insertions, 0 deletions
diff --git a/Toolchain/arm-linux.cmake b/Toolchain/arm-linux.cmake
new file mode 100644
index 000000000..c85a8a6dc
--- /dev/null
+++ b/Toolchain/arm-linux.cmake
@@ -0,0 +1,14 @@
+set ( CMAKE_SYSTEM_NAME GNU )
+
+# specify the cross compiler
+find_program ( CMAKE_C_COMPILER NAMES arm-linux-gcc )
+find_program ( CMAKE_CXX_COMPILER NAMES arm-linux-g++ )
+
+set ( TOMTOM_SDK_DIR /opt/tomtom-sdk )
+set ( CMAKE_FIND_ROOT_PATH ${TOMTOM_SDK_DIR} )
+
+set ( CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER )
+set ( CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY )
+set ( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY )
+set ( CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY )
+add_definitions(-D_GNU_SOURCE)