2012-04-18 00:07:20 -03:00
|
|
|
set(CMAKE_TOOLCHAIN_FILE ../cmake/ArduinoToolchain.cmake) # Arduino Toolchain
|
2012-04-17 22:31:10 -03:00
|
|
|
|
|
|
|
cmake_minimum_required(VERSION 2.8)
|
|
|
|
|
2012-04-18 00:07:20 -03:00
|
|
|
project(ArduPlane C CXX)
|
2012-04-17 22:31:10 -03:00
|
|
|
|
|
|
|
set(PROJECT_VERSION_MAJOR "2")
|
|
|
|
set(PROJECT_VERSION_MINOR "3")
|
|
|
|
set(PROJECT_VERSION_PATCH "3")
|
|
|
|
set(PROJECT_VERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}")
|
|
|
|
|
2012-04-18 00:07:20 -03:00
|
|
|
set(PROJECT_DESCRIPTION "ArduPilotMega based Airplane Autopilot.")
|
|
|
|
|
2012-04-17 22:31:10 -03:00
|
|
|
# macro path
|
|
|
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/../cmake/modules")
|
|
|
|
|
2012-04-18 00:07:20 -03:00
|
|
|
# common project setup
|
|
|
|
include(APMProject)
|