Imraa allows the automatic flashing and setup of arduino101 subplatforms as well as the initial setup of GPIO/i2c devices Signed-off-by: Longwei Su <lsu@ics.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
16 lines
463 B
CMake
16 lines
463 B
CMake
add_executable (imraa imraa.c)
|
|
|
|
include_directories (${PROJECT_SOURCE_DIR}/api)
|
|
include_directories (${PROJECT_SOURCE_DIR}/include)
|
|
include_directories (${PROJECT_SOURCE_DIR}/api/mraa)
|
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DIMRAA=1")
|
|
|
|
find_package (JSON-C REQUIRED)
|
|
include_directories (${JSON-C_INCLUDE_DIR})
|
|
target_link_libraries (imraa mraa ${JSON-C_LIBRARIES} udev)
|
|
|
|
set_property (TARGET imraa PROPERTY C_STANDARD 99)
|
|
|
|
install (TARGETS imraa DESTINATION bin)
|