summaryrefslogtreecommitdiffstats
path: root/Matrix_9x14/cmake/modules/Platform
diff options
context:
space:
mode:
authorAlexander Kauerz <kauerz@informatik.uni-luebeck.de>2012-02-09 22:59:58 +0100
committerAlexander Kauerz <kauerz@informatik.uni-luebeck.de>2012-02-09 22:59:58 +0100
commitfbea3ae42daade09ad42fe9ae9ca542f77b96c20 (patch)
tree4d2162027b1bac7830569d5f8efd9813f3497902 /Matrix_9x14/cmake/modules/Platform
parent8f428f51b4b62d1f07c88cace7bb127e436271a5 (diff)
downloadledmatrix-fbea3ae42daade09ad42fe9ae9ca542f77b96c20.tar
ledmatrix-fbea3ae42daade09ad42fe9ae9ca542f77b96c20.zip
lolshield-matrix hinzu
Diffstat (limited to 'Matrix_9x14/cmake/modules/Platform')
-rw-r--r--Matrix_9x14/cmake/modules/Platform/Arduino.cmake0
-rw-r--r--Matrix_9x14/cmake/modules/Platform/ArduinoPaths.cmake21
2 files changed, 21 insertions, 0 deletions
diff --git a/Matrix_9x14/cmake/modules/Platform/Arduino.cmake b/Matrix_9x14/cmake/modules/Platform/Arduino.cmake
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/Matrix_9x14/cmake/modules/Platform/Arduino.cmake
diff --git a/Matrix_9x14/cmake/modules/Platform/ArduinoPaths.cmake b/Matrix_9x14/cmake/modules/Platform/ArduinoPaths.cmake
new file mode 100644
index 0000000..2737209
--- /dev/null
+++ b/Matrix_9x14/cmake/modules/Platform/ArduinoPaths.cmake
@@ -0,0 +1,21 @@
+if(UNIX)
+ include(Platform/UnixPaths)
+ if(APPLE)
+ list(APPEND CMAKE_SYSTEM_PREFIX_PATH ~/Applications
+ /Applications
+ /Developer/Applications
+ /sw # Fink
+ /opt/local) # MacPorts
+ endif()
+elseif(WIN32)
+ include(Platform/WindowsPaths)
+endif()
+
+if(ARDUINO_SDK_PATH)
+ if(WIN32)
+ list(APPEND CMAKE_SYSTEM_PREFIX_PATH ${ARDUINO_SDK_PATH}/hardware/tools/avr/bin)
+ list(APPEND CMAKE_SYSTEM_PREFIX_PATH ${ARDUINO_SDK_PATH}/hardware/tools/avr/utils/bin)
+ elseif(APPLE)
+ list(APPEND CMAKE_SYSTEM_PREFIX_PATH ${ARDUINO_SDK_PATH}/hardware/tools/avr/bin)
+ endif()
+endif()