2016-01-05 19:36:55 +01:00
|
|
|
enable_language(CXX)
|
|
|
|
|
|
2018-01-24 15:09:29 +05:30
|
|
|
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)
|
2014-05-15 22:47:38 +01:00
|
|
|
|
|
|
|
|
include_directories(${PROJECT_SOURCE_DIR}/api)
|
2018-01-08 13:29:24 +05:30
|
|
|
include_directories(${PROJECT_SOURCE_DIR}/api/mraa)
|
2014-05-15 22:47:38 +01:00
|
|
|
|
2018-01-24 15:09:29 +05:30
|
|
|
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++)
|
2016-04-14 13:52:09 +01:00
|
|
|
|
|
|
|
|
if (ONEWIRE)
|
2018-01-24 15:09:29 +05:30
|
|
|
add_executable (uart_ow_cpp uart_ow.cpp)
|
|
|
|
|
target_link_libraries (uart_ow_cpp mraa stdc++)
|
2016-04-14 13:52:09 +01:00
|
|
|
endif ()
|