NerfUS mobile node that manages a target for the Nerf gun firing range

Dependencies:   LedController mbed-rtos mbed NerfUSXbee Servomotor TargetManager

Fork of NerfUS by NerfUS

LedController.cmake

Committer:
Maxime Dupuis
Date:
2017-04-12
Revision:
51:6bf268cd1a1b
Parent:
17:975139bbddef

File content as of revision 51:6bf268cd1a1b:

cmake_minimum_required(VERSION 3.5)

# Download and unpack led_controller at configure time
configure_file(LedController.txt.in
               led_controller-download/CMakeLists.txt)

execute_process(COMMAND ${CMAKE_COMMAND} -G "${CMAKE_GENERATOR}" .
  WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/led_controller-download )
execute_process(COMMAND ${CMAKE_COMMAND} --build .
  WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/led_controller-download )
 
# Add led_controller directly to our build.
add_subdirectory(${CMAKE_BINARY_DIR}/led_controller-src
                 ${CMAKE_BINARY_DIR}/led_controller-build)
 
include_directories("${led_controller_SOURCE_DIR}/include")