MCUXpresso_LPC55S69/components/gpio/component_lpc_gpio_adapter....

21 lines
603 B
CMake

# Add set(CONFIG_USE_component_lpc_gpio_adapter true) in config.cmake to use this component
include_guard(GLOBAL)
message("${CMAKE_CURRENT_LIST_FILE} component is included.")
if(CONFIG_USE_driver_lpc_gpio AND CONFIG_USE_driver_inputmux AND CONFIG_USE_driver_pint)
target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
${CMAKE_CURRENT_LIST_DIR}/fsl_adapter_lpc_gpio.c
)
target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
${CMAKE_CURRENT_LIST_DIR}/.
)
else()
message(SEND_ERROR "component_lpc_gpio_adapter.LPC55S69 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
endif()