MCUXpresso_MIMXRT1021xxxxx/devices/MIMXRT1021/utilities/debug_console_lite/utility_assert_lite.MIMXRT1021.cmake
Yilin Sun 763d32be90
Updated SDK to v2.15.000
Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-03-15 22:23:36 +08:00

21 lines
563 B
CMake

# Add set(CONFIG_USE_utility_assert_lite true) in config.cmake to use this component
include_guard(GLOBAL)
message("${CMAKE_CURRENT_LIST_FILE} component is included.")
if(CONFIG_USE_utility_debug_console_lite AND CONFIG_USE_driver_common)
target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
${CMAKE_CURRENT_LIST_DIR}/fsl_assert.c
)
target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
${CMAKE_CURRENT_LIST_DIR}/.
)
else()
message(SEND_ERROR "utility_assert_lite.MIMXRT1021 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
endif()