21 lines
606 B
CMake
21 lines
606 B
CMake
|
# Add set(CONFIG_USE_middleware_issdk_sensor_fxlc95000 true) in config.cmake to use this component
|
||
|
|
||
|
include_guard(GLOBAL)
|
||
|
message("${CMAKE_CURRENT_LIST_FILE} component is included.")
|
||
|
|
||
|
if(CONFIG_USE_CMSIS_Driver_Include_I2C AND CONFIG_USE_CMSIS_Driver_Include_SPI)
|
||
|
|
||
|
target_sources(${MCUX_SDK_PROJECT_NAME} PRIVATE
|
||
|
${CMAKE_CURRENT_LIST_DIR}/sensors/fxlc95000_drv.c
|
||
|
)
|
||
|
|
||
|
target_include_directories(${MCUX_SDK_PROJECT_NAME} PUBLIC
|
||
|
${CMAKE_CURRENT_LIST_DIR}/sensors
|
||
|
)
|
||
|
|
||
|
else()
|
||
|
|
||
|
message(SEND_ERROR "middleware_issdk_sensor_fxlc95000 dependency does not meet, please check ${CMAKE_CURRENT_LIST_FILE}.")
|
||
|
|
||
|
endif()
|