diff options
Diffstat (limited to 'arduino-cmake/CMakeLists.txt')
-rw-r--r-- | arduino-cmake/CMakeLists.txt | 19 |
1 files changed, 19 insertions, 0 deletions
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 |