By default, CMake assumes both a C and C++ compiler are required. This is not needed for mraa because it only provides C++ header files. Note that if using SWIG you need one and if using node.js 3+ you'll need a C++11 compiler Signed-off-by: Pieterjan Camerlynck <pieterjan.camerlynck@gmail.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
22 lines
755 B
CMake
22 lines
755 B
CMake
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)
|
|
|
|
include_directories(${PROJECT_SOURCE_DIR}/api)
|
|
|
|
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++)
|