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
Xbee.cmake@33:860ed7757673, 2017-03-30 (annotated)
- Committer:
- Maxime Dupuis
- Date:
- Thu Mar 30 14:11:35 2017 -0400
- Revision:
- 33:860ed7757673
Make it compile after changes to Xbee library
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Maxime Dupuis |
33:860ed7757673 | 1 | cmake_minimum_required(VERSION 3.5) |
Maxime Dupuis |
33:860ed7757673 | 2 | |
Maxime Dupuis |
33:860ed7757673 | 3 | # Download and unpack xbee at configure time |
Maxime Dupuis |
33:860ed7757673 | 4 | configure_file(Xbee.txt.in |
Maxime Dupuis |
33:860ed7757673 | 5 | xbee-download/CMakeLists.txt) |
Maxime Dupuis |
33:860ed7757673 | 6 | |
Maxime Dupuis |
33:860ed7757673 | 7 | execute_process(COMMAND ${CMAKE_COMMAND} -G "${CMAKE_GENERATOR}" . |
Maxime Dupuis |
33:860ed7757673 | 8 | WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/xbee-download ) |
Maxime Dupuis |
33:860ed7757673 | 9 | execute_process(COMMAND ${CMAKE_COMMAND} --build . |
Maxime Dupuis |
33:860ed7757673 | 10 | WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/xbee-download ) |
Maxime Dupuis |
33:860ed7757673 | 11 | |
Maxime Dupuis |
33:860ed7757673 | 12 | # Add xbee directly to our build. |
Maxime Dupuis |
33:860ed7757673 | 13 | add_subdirectory(${CMAKE_BINARY_DIR}/xbee-src |
Maxime Dupuis |
33:860ed7757673 | 14 | ${CMAKE_BINARY_DIR}/xbee-build) |
Maxime Dupuis |
33:860ed7757673 | 15 | |
Maxime Dupuis |
33:860ed7757673 | 16 | include_directories("${xbee_SOURCE_DIR}/include") |
Maxime Dupuis |
33:860ed7757673 | 17 |