2012-09-08 20:00:20 +00:00
|
|
|
set(CMAKE_TOOLCHAIN_FILE cmake/ArduinoToolchain.cmake) # Arduino Toolchain
|
|
|
|
|
|
|
|
cmake_minimum_required(VERSION 2.8)
|
|
|
|
#====================================================================#
|
|
|
|
# Setup Project #
|
|
|
|
#====================================================================#
|
|
|
|
project(WeatherStation C CXX)
|
|
|
|
|
|
|
|
set(ARDUINO_DEFAULT_BOARD uno)
|
|
|
|
set(ARDUINO_DEFAULT_PORT /dev/ttyUSB0)
|
|
|
|
set(ARDUINO_DEFAULT_SERIAL "picocom @INPUT_PORT@ -b 9600 -l")
|
|
|
|
|
|
|
|
#link_directories(${CMAKE_CURRENT_SOURCE_DIR}/../libraries)
|
|
|
|
|
|
|
|
generate_arduino_firmware(WeatherStationLogger
|
|
|
|
SKETCH WeatherStationLogger)
|
|
|
|
|
|
|
|
generate_arduino_firmware(WeatherStationWeb
|
2012-09-15 10:25:54 +00:00
|
|
|
SKETCH WeatherStationWeb)
|
2012-10-20 12:31:03 +00:00
|
|
|
|
|
|
|
generate_arduino_firmware(I2CPractise
|
|
|
|
SKETCH I2CPractise)
|