21 lines
522 B
CMake
21 lines
522 B
CMake
|
# Add set(CONFIG_USE_component_panic true) in config.cmake to use this component
|
||
|
|
||
|
include_guard(GLOBAL)
|
||
|
message("${CMAKE_CURRENT_LIST_FILE} component is included.")
|
||
|
|
||
|
if(CONFIG_USE_driver_common)
|
||
|
|
||
|
target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
|
||
|
${CMAKE_CURRENT_LIST_DIR}/fsl_component_panic.c
|
||
|
)
|
||
|
|
||
|
target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
|
||
|
${CMAKE_CURRENT_LIST_DIR}/.
|
||
|
)
|
||
|
|
||
|
else()
|
||
|
|
||
|
message(SEND_ERROR "component_panic.MIMXRT1021 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
|
||
|
|
||
|
endif()
|