ArduCopter: Fixed board setting in cmake-file. Removed now autogenerated Makefile

This commit is contained in:
Janne M 2011-09-30 11:30:43 +03:00
parent cd02e78af7
commit 8b32fb00da
2 changed files with 7 additions and 11 deletions

View File

@ -22,12 +22,18 @@ project(ArduCopter C CXX)
find_package(Arduino 22 REQUIRED)
if (NOT DEFINED BOARD)
message(STATUS "board not defined, assuming mega, use cmake -DBOARD=mega2560 , etc. to specify")
set(BOARD "mega")
endif()
message(STATUS "Board configured as: ${BOARD}")
add_subdirectory(../libraries "${CMAKE_CURRENT_BINARY_DIR}/libs")
#add_subdirectory(${CMAKE_SOURCE_DIR}/ArduCopter)
#add_subdirectory(testtool)
PRINT_BOARD_SETTINGS(mega2560)
PRINT_BOARD_SETTINGS(${BOARD})

View File

@ -1,10 +0,0 @@
#
# Trivial makefile for building APM
#
#
# Select 'mega' for the original APM, or 'mega2560' for the V2 APM.
#
BOARD = mega
include ../libraries/AP_Common/Arduino.mk