reflow/CMakeLists.txt

30 lines
1.2 KiB
CMake

#=============================================================================#
# Author: QueezyTheGreat #
# Date: 26.04.2011 #
# #
# Description: Arduino CMake example #
# #
#=============================================================================#
set(CMAKE_TOOLCHAIN_FILE cmake/ArduinoToolchain.cmake) # Arduino Toolchain
cmake_minimum_required(VERSION 2.8.5)
project(ReflowCtl C CXX)
set(ARDUINO_DEFAULT_BOARD atmega328) # Default Board ID, when not specified
set(ARDUINO_DEFAULT_PORT /dev/ttyUSB0) # Default Port, when not specified
link_directories(/usr/share/arduino/libraries)
#
# generate_arduino_library(reflowctl_lib
# SRCS oven_control.cpp profile.cpp
# HDRS oven_control.h profile.h
# BOARD atmega328)
generate_arduino_firmware(reflowctl
SRCS oven_control.cpp profile.cpp main.cpp
HDRS oven_control.h profile.h
PORT /dev/ttyUSB0
BOARD atmega328)