mirror of
https://github.com/eclipse/upm.git
synced 2025-03-14 20:47:30 +03:00

Adding base classes for UPM sensors and actuators. Signed-off-by: Noel Eck <noel.eck@intel.com>
21 lines
956 B
CMake
21 lines
956 B
CMake
# Create an list of all C++ source files in this directory
|
|
file (GLOB example_src_list RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*.cxx")
|
|
|
|
# - Handle special cases here --------------------------------------------------
|
|
|
|
# Test humidity interface for 2 sensor libraries
|
|
add_example(core-humiditysensor.cxx TARGETS si7005 bmp280)
|
|
# Test pressure interface for 2 sensor libraries
|
|
add_example(core-pressuresensor.cxx TARGETS bmp280 bmpx8x)
|
|
# Test temperature interface for 3 sensor libraries
|
|
add_example(core-temperaturesensor.cxx TARGETS bmp280 bmpx8x si7005)
|
|
# Test light interface for 2 sensor libraries
|
|
add_example(core-lightsensor.cxx TARGETS si1132 max44009)
|
|
# Test light controller interface for 3 sensor libraries
|
|
add_example(core-lightcontroller.cxx TARGETS lp8860 ds1808lc hlg150h)
|
|
|
|
# - Create an executable for all other src files in this directory -------------
|
|
foreach (_example_src ${example_src_list})
|
|
add_example(${_example_src})
|
|
endforeach ()
|