CMakeLists.txt 409 B

123456789101112131415
  1. if(CONFIG_USE_SEGGER_RTT)
  2. zephyr_library()
  3. set(SEGGER_DIR ${ZEPHYR_CURRENT_MODULE_DIR})
  4. zephyr_include_directories_ifdef(CONFIG_USE_SEGGER_RTT
  5. ${SEGGER_DIR}/SEGGER
  6. ${SEGGER_DIR}/Config
  7. .
  8. )
  9. zephyr_library_sources(
  10. ${SEGGER_DIR}/SEGGER/SEGGER_RTT.c
  11. SEGGER_RTT_zephyr.c
  12. )
  13. zephyr_library_sources_ifdef(CONFIG_SEGGER_SYSTEMVIEW ${SEGGER_DIR}/SEGGER/SEGGER_SYSVIEW.c)
  14. endif()