From 8f428f51b4b62d1f07c88cace7bb127e436271a5 Mon Sep 17 00:00:00 2001 From: Alexander Kauerz Date: Thu, 9 Feb 2012 22:57:52 +0100 Subject: cmake hinzu --- arduino-cmake/CMakeLists.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 arduino-cmake/CMakeLists.txt (limited to 'arduino-cmake/CMakeLists.txt') diff --git a/arduino-cmake/CMakeLists.txt b/arduino-cmake/CMakeLists.txt new file mode 100644 index 0000000..ba40b58 --- /dev/null +++ b/arduino-cmake/CMakeLists.txt @@ -0,0 +1,19 @@ +#=============================================================================# +# Author: QueezyTheGreat # +# Date: 26.04.2011 # +# # +# Description: Arduino CMake example # +# # +#=============================================================================# +set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules) # CMake module search path +set(CMAKE_TOOLCHAIN_FILE ${CMAKE_SOURCE_DIR}/cmake/toolchains/Arduino.cmake) # Arduino Toolchain + + +cmake_minimum_required(VERSION 2.8) +#====================================================================# +# Setup Project # +#====================================================================# +project(ArduinoExample C CXX) +find_package(Arduino 1.0 REQUIRED) + +add_subdirectory(example) # Add example directory to build -- cgit v1.2.3