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} "*.c")
|
2016-08-17 17:58:21 -07:00
|
|
|
|
2017-04-03 14:39:11 -07:00
|
|
|
# - Handle special cases here --------------------------------------------------
|
2016-08-17 17:58:21 -07:00
|
|
|
|
2017-04-03 14:39:11 -07:00
|
|
|
#add_example(humidity-sensor.c TARGETS si7005-c bmp280-c)
|
2016-08-17 17:58:21 -07:00
|
|
|
|
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})
|
2017-02-07 17:00:29 -08:00
|
|
|
add_example(${_example_src} TARGETS utilities-c SUFFIX "-c")
|
2017-04-03 14:39:11 -07:00
|
|
|
endforeach ()
|