examples: Cleanup C++ examples
Modify the C++ examples to be of same coding standard like C. As a part of this cleanup, a new LED example is also added. Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
committed by
Brendan Le Foll
parent
eaaebae69d
commit
83a67b96fd
@@ -1,27 +1,29 @@
|
||||
enable_language(CXX)
|
||||
|
||||
add_executable (AioA0 AioA0.cpp)
|
||||
add_executable (blink-io-cpp Blink-IO.cpp)
|
||||
add_executable (Pwm3-cycle Pwm3-cycle.cpp)
|
||||
add_executable (I2c-compass I2c-compass.cpp)
|
||||
add_executable (Spi-pot Spi-pot.cpp)
|
||||
add_executable (Uart Uart-example.cpp)
|
||||
add_executable (Isr-pin6 Isr-pin6.cpp)
|
||||
add_executable (Iio-dummy Iio-dummy.cpp)
|
||||
add_executable (aio_cpp aio.cpp)
|
||||
add_executable (gpio_advanced_cpp gpio_advanced.cpp)
|
||||
add_executable (gpio_cpp gpio.cpp)
|
||||
add_executable (pwm_cpp pwm.cpp)
|
||||
add_executable (i2c_cpp i2c.cpp)
|
||||
add_executable (spi_cpp spi.cpp)
|
||||
add_executable (uart_cpp uart.cpp)
|
||||
add_executable (iio_cpp iio.cpp)
|
||||
add_executable (led_cpp led.cpp)
|
||||
|
||||
include_directories(${PROJECT_SOURCE_DIR}/api)
|
||||
include_directories(${PROJECT_SOURCE_DIR}/api/mraa)
|
||||
|
||||
target_link_libraries (AioA0 mraa stdc++)
|
||||
target_link_libraries (blink-io-cpp mraa stdc++)
|
||||
target_link_libraries (Pwm3-cycle mraa stdc++)
|
||||
target_link_libraries (I2c-compass mraa stdc++ m)
|
||||
target_link_libraries (Spi-pot mraa stdc++)
|
||||
target_link_libraries (Uart mraa stdc++)
|
||||
target_link_libraries (Isr-pin6 mraa stdc++)
|
||||
target_link_libraries (Iio-dummy mraa stdc++)
|
||||
target_link_libraries (aio_cpp mraa stdc++)
|
||||
target_link_libraries (gpio_advanced_cpp mraa stdc++)
|
||||
target_link_libraries (gpio_cpp mraa stdc++)
|
||||
target_link_libraries (pwm_cpp mraa stdc++)
|
||||
target_link_libraries (i2c_cpp mraa stdc++ m)
|
||||
target_link_libraries (spi_cpp mraa stdc++)
|
||||
target_link_libraries (uart_cpp mraa stdc++)
|
||||
target_link_libraries (iio_cpp mraa stdc++)
|
||||
target_link_libraries (led_cpp mraa stdc++)
|
||||
|
||||
if (ONEWIRE)
|
||||
add_executable (UartOW UartOW.cpp)
|
||||
target_link_libraries (UartOW mraa stdc++)
|
||||
add_executable (uart_ow_cpp uart_ow.cpp)
|
||||
target_link_libraries (uart_ow_cpp mraa stdc++)
|
||||
endif ()
|
||||
|
||||
Reference in New Issue
Block a user