mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +03:00
curieimu: Make compilation dependant on mraa_firmata_init
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
parent
224a915538
commit
61dbfe4f23
@ -240,7 +240,9 @@ add_example (rhusb)
|
||||
add_example (apds9930)
|
||||
add_example (kxcjk1013)
|
||||
add_example (ssd1351)
|
||||
if (HAVE_FIRMATA)
|
||||
add_example (curieimu)
|
||||
endif ()
|
||||
|
||||
# These are special cases where you specify example binary, source file and module(s)
|
||||
include_directories (${PROJECT_SOURCE_DIR}/src)
|
||||
|
@ -1,5 +1,11 @@
|
||||
include (CheckFunctionExists)
|
||||
include (CheckLibraryExists)
|
||||
include (CheckIncludeFiles)
|
||||
check_library_exists (${MRAA_LIBRARIES} mraa_firmata_init "" HAVE_FIRMATA)
|
||||
if (HAVE_FIRMATA)
|
||||
set (libname "curieimu")
|
||||
set (libdescription "upm Curie IMU via Firmata")
|
||||
set (module_src ${libname}.cpp)
|
||||
set (module_h ${libname}.hpp)
|
||||
upm_module_init ()
|
||||
endif ()
|
||||
|
Loading…
x
Reference in New Issue
Block a user