CMake modules for arena
=======================

The root CMakeLists.txt has to define ARENA_BOARD, ARENA_APP and to include 2 modules.
The biwak module has to be included before the arena modules. The arena modules provide
an linker script as well biwak. GCC loads them from right to left.

Example:
'''
set ( ARENA_BOARD "stm32l431rc" )
set ( ARENA_APP "canrec" )

set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/libarena/cmake;[...]")

find_package(Biwak REQUIRED)
find_package(ArenaBoard REQUIRED)
find_package(ArenaApp REQUIRED)
'''

ArenaBoard: Includes the cmake files generated by the pinmuxer. Sets MCU specific compiler settings
ArenaApp: Sets application specific linker settings.

The generated platform sources are generated/included by the arena library.

Multiple applications can be produced in a single build. Neither the arena board nor the arena app
can be changed within a single build.
For each application the module 'ArenaFlash' can be included. This will provide a make target 
"<application>.flash". building this target will flash the application to the board.

'''
find_package(ArenaFlash REQUIRED)
'''

Variables
=========

* ARENA_BOARD
* ARENA_APP
* ARENA_BOARD_DIRS
