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