MCUXpresso_LPC804/components/pwm/component_pwm_ctimer_adapter.LPC804.cmake
Yilin Sun 991051a00a
Updated to SDK v2.14
Signed-off-by: Yilin Sun <imi415@imi.moe>
2023-08-05 13:53:57 +08:00

21 lines
576 B
CMake

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