2017-04-03 14:39:11 -07:00
|
|
|
# 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
|
2017-04-06 14:16:55 -07:00
|
|
|
add_example(interfaces-humiditysensor.cxx TARGETS si7005 bmp280)
|
2017-04-03 14:39:11 -07:00
|
|
|
# Test pressure interface for 2 sensor libraries
|
2017-04-06 14:16:55 -07:00
|
|
|
add_example(interfaces-pressuresensor.cxx TARGETS bmp280 bmpx8x)
|
2017-04-03 14:39:11 -07:00
|
|
|
# Test temperature interface for 3 sensor libraries
|
2017-04-06 14:16:55 -07:00
|
|
|
add_example(interfaces-temperaturesensor.cxx TARGETS bmp280 bmpx8x si7005)
|
2017-04-03 14:39:11 -07:00
|
|
|
# Test light interface for 2 sensor libraries
|
2017-04-06 14:16:55 -07:00
|
|
|
add_example(interfaces-lightsensor.cxx TARGETS si1132 max44009)
|
2017-04-03 14:39:11 -07:00
|
|
|
# Test light controller interface for 3 sensor libraries
|
2017-04-06 14:16:55 -07:00
|
|
|
add_example(interfaces-lightcontroller.cxx TARGETS lp8860 ds1808lc hlg150h)
|
2017-04-03 14:39:11 -07:00
|
|
|
|
|
|
|
# - Create an executable for all other src files in this directory -------------
|
|
|
|
foreach (_example_src ${example_src_list})
|
|
|
|
add_example(${_example_src})
|
|
|
|
endforeach ()
|