MCUXpresso_MCXA153/components/timer_manager/component_timer_manager.MCXA153.cmake
Yilin Sun 35e678394a
Initial commit v2.14.2
Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-02-11 19:33:06 +08:00

21 lines
694 B
CMake

# Add set(CONFIG_USE_component_timer_manager 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_component_lists AND (CONFIG_USE_component_ctimer_adapter OR CONFIG_USE_component_lptmr_adapter OR CONFIG_USE_component_ostimer_adapter))
target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
${CMAKE_CURRENT_LIST_DIR}/fsl_component_timer_manager.c
)
target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
${CMAKE_CURRENT_LIST_DIR}/.
)
else()
message(SEND_ERROR "component_timer_manager.MCXA153 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
endif()