CMakeLists.txt 484 B

12345678910111213141516
  1. cmake_minimum_required(VERSION 3.8)
  2. cmake_policy(SET CMP0069 NEW)
  3. if ("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "AVR")
  4. add_subdirectory("atmega328p")
  5. elseif ("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "Cortex-M7")
  6. add_subdirectory("NUCLEO-H743ZI2")
  7. elseif ("${TOOLCHAIN_PREFIX}" STREQUAL "")
  8. add_subdirectory("host")
  9. endif()
  10. # any platform, as there is no timer
  11. add_executable(ping-pong-throughput ping-pong-throughput.cpp)
  12. target_link_libraries(ping-pong-throughput rotor_light)