MCUXpresso_MIMXRT1021xxxxx/components/serial_manager/component_serial_manager_MIMXRT1021.cmake
2022-08-23 23:00:33 +08:00

42 lines
1.9 KiB
CMake

include_guard()
message("component_serial_manager component is included.")
target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
${CMAKE_CURRENT_LIST_DIR}/fsl_component_serial_manager.c
)
target_include_directories(${MCUX_SDK_PROJECT_NAME} PRIVATE
${CMAKE_CURRENT_LIST_DIR}/.
)
#OR Logic component
if(CONFIG_USE_component_serial_manager_uart_MIMXRT1021)
include(component_serial_manager_uart_MIMXRT1021)
endif()
if(CONFIG_USE_component_serial_manager_usb_cdc_MIMXRT1021)
include(component_serial_manager_usb_cdc_MIMXRT1021)
endif()
if(CONFIG_USE_component_serial_manager_virtual_MIMXRT1021)
include(component_serial_manager_virtual_MIMXRT1021)
endif()
if(CONFIG_USE_component_serial_manager_swo_MIMXRT1021)
include(component_serial_manager_swo_MIMXRT1021)
endif()
if(CONFIG_USE_component_serial_manager_rpmsg_MIMXRT1021)
include(component_serial_manager_rpmsg_MIMXRT1021)
endif()
if(CONFIG_USE_component_serial_manager_spi_MIMXRT1021)
include(component_serial_manager_spi_MIMXRT1021)
endif()
if(NOT (CONFIG_USE_component_serial_manager_uart_MIMXRT1021 OR CONFIG_USE_component_serial_manager_usb_cdc_MIMXRT1021 OR CONFIG_USE_component_serial_manager_virtual_MIMXRT1021 OR CONFIG_USE_component_serial_manager_swo_MIMXRT1021 OR CONFIG_USE_component_serial_manager_rpmsg_MIMXRT1021 OR CONFIG_USE_component_serial_manager_spi_MIMXRT1021))
message(WARNING "Since component_serial_manager_uart_MIMXRT1021/component_serial_manager_usb_cdc_MIMXRT1021/component_serial_manager_virtual_MIMXRT1021/component_serial_manager_swo_MIMXRT1021/component_serial_manager_rpmsg_MIMXRT1021/component_serial_manager_spi_MIMXRT1021 is not included at first or config in config.cmake file, use component_serial_manager_uart_MIMXRT1021 by default.")
include(component_serial_manager_uart_MIMXRT1021)
endif()
include(driver_common_MIMXRT1021)
include(component_lists_MIMXRT1021)