NerfUS game coordinator for the Nerf gun firing range
Dependencies: HardwareInterface mbed-rtos mbed
Fork of NerfUS by
Diff: HardwareInterface.cmake
- Revision:
- 13:850be84c78dd
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/HardwareInterface.cmake Thu Feb 16 12:34:00 2017 -0500 @@ -0,0 +1,17 @@ +cmake_minimum_required(VERSION 3.5) + +# Download and unpack hardwareInterface at configure time +configure_file(HardwareInterface.txt.in + hardwareInterface-download/CMakeLists.txt) + +execute_process(COMMAND ${CMAKE_COMMAND} -G "${CMAKE_GENERATOR}" . + WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/hardwareInterface-download ) +execute_process(COMMAND ${CMAKE_COMMAND} --build . + WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/hardwareInterface-download ) + +# Add hardwareInterface directly to our build. +add_subdirectory(${CMAKE_BINARY_DIR}/hardwareInterface-src + ${CMAKE_BINARY_DIR}/hardwareInterface-build) + +include_directories("${hardwareInterface_SOURCE_DIR}/include") +