Following changes are done as a part of cleanup: 1. Moved the platform specific `C` examples from top level examples/ directory to platform/ subdirectory and renamed helloedison.c to gpio_edison.c 2. C specific examples are moved to a new c/ subdirectory. As a part of this process, examples are modified to follow same standards and few new examples are also added. 3. Include the newly added C examples to relevant API documentation 4. Ran clang-format for all source files in c/, c++/, platform/ subdirectories Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
13 lines
400 B
CMake
13 lines
400 B
CMake
add_executable (gpio_edison gpio_edison.c)
|
|
target_link_libraries (gpio_edison mraa)
|
|
|
|
include_directories(${PROJECT_SOURCE_DIR}/api)
|
|
include_directories(${PROJECT_SOURCE_DIR}/api/mraa)
|
|
|
|
if (FIRMATA)
|
|
add_executable (firmata_curie_imu firmata_curie_imu.c)
|
|
add_executable (i2c_firmata i2c_firmata.c)
|
|
target_link_libraries (firmata_curie_imu mraa)
|
|
target_link_libraries (i2c_firmata mraa)
|
|
endif()
|