Skip to content
Snippets Groups Projects
Commit c85d6b05 authored by James Goppert's avatar James Goppert
Browse files

cmake overhaul, cleaned up readme, added license

parent 7f5f9252
No related branches found
No related tags found
No related merge requests found
...@@ -19,7 +19,6 @@ if( NOT DEFINED CMAKE_BUILD_TYPE ) ...@@ -19,7 +19,6 @@ if( NOT DEFINED CMAKE_BUILD_TYPE )
set( CMAKE_BUILD_TYPE "RelWithDebInfo" ) set( CMAKE_BUILD_TYPE "RelWithDebInfo" )
endif() endif()
#set (CMAKE_CXX_SOURCE_FILE_EXTENSIONS pde)
find_package(Arduino 22 REQUIRED) find_package(Arduino 22 REQUIRED)
...@@ -30,15 +29,38 @@ if (NOT DEFINED BOARD) ...@@ -30,15 +29,38 @@ if (NOT DEFINED BOARD)
endif() endif()
message(STATUS "Board configured as: ${BOARD}") message(STATUS "Board configured as: ${BOARD}")
set (CMAKE_CXX_SOURCE_FILE_EXTENSIONS pde)
# apo # apo
set(apo_ASFLAGS "-assembler-with-cpp") #set(apo_ASFLAGS "-assembler-with-cpp")
set(apo_BOARD ${BOARD}) set(apo_BOARD ${BOARD})
set(apo_LIBS
c
m)
set(apo_SRCS set(apo_SRCS
apo/apo.cpp apo/apo.cpp
) )
set(GCS_MAVLink_RECURSE False)
generate_arduino_firmware(apo) generate_arduino_firmware(apo)
# ArduRover
set(ArduRover_BOARD ${BOARD})
set(ArduRover_SRCS
ArduRover/ArduRover.pde
)
#generate_arduino_firmware(ArduRover)
# ArduBoat
set(ArduRover_BOARD ${BOARD})
set(ArduRover_SRCS
ArduRover/ArduRover.pde
)
#generate_arduino_firmware(ArduBoat)
# ArduPlane
set(ArduPlane ${BOARD})
set(ArduPlane_SRCS
)
#generate_arduino_firmware(ArduPlane)
# ArduCopter
set(ArduCopter ${BOARD})
set(ArduCopter_SRCS
)
#generate_arduino_firmware(ArduCopter)
This diff is collapsed.
Building using arduino
--------------------------
To install the libraries:
- copy Library Directories to your \arduino\hardware\libraries\ or arduino\libraries directory
- Restart arduino IDE
* Each library comes with a simple example. You can find the examples in menu File->Examples
Building using make
-----------------------------------------------
- go to directory of sketch and type make.
Building using cmake
-----------------------------------------------
- mkdir build
- cd build
- cmake ..
- make (will build every sketch)
- make ArduPlane (will build just ArduPlane etc.)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment