22 lines
634 B
CMake
22 lines
634 B
CMake
# Add set(CONFIG_USE_component_cs42448_adapter true) in config.cmake to use this component
|
|
|
|
include_guard(GLOBAL)
|
|
message("${CMAKE_CURRENT_LIST_FILE} component is included.")
|
|
|
|
if(CONFIG_USE_driver_cs42448 AND CONFIG_USE_driver_codec)
|
|
|
|
target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
|
|
${CMAKE_CURRENT_LIST_DIR}/port/cs42448/fsl_codec_cs42448_adapter.c
|
|
)
|
|
|
|
target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
|
|
${CMAKE_CURRENT_LIST_DIR}/port/cs42448
|
|
${CMAKE_CURRENT_LIST_DIR}/port
|
|
)
|
|
|
|
else()
|
|
|
|
message(SEND_ERROR "component_cs42448_adapter.MIMXRT1052 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
|
|
|
|
endif()
|