zephyr/drivers/sensor/grove/CMakeLists.txt
Daniel Leung bcdff8220a drivers: sensors: build as static libraries
Instead of putting object files inside libzephyr.a, simply
build a separate static library for the top level of sensor
drivers. Also, for those that were not building its own
static library, make them do so as majority of sensor
drivers are building their own static libraries.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2021-08-17 06:06:03 -04:00

5 lines
211 B
CMake

# SPDX-License-Identifier: Apache-2.0
zephyr_library()
zephyr_library_sources_ifdef(CONFIG_GROVE_LIGHT_SENSOR light_sensor.c)
zephyr_library_sources_ifdef(CONFIG_GROVE_TEMPERATURE_SENSOR temperature_sensor.c)