mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +03:00
cmake: add check for tinyb and set as dependency for 2jciebu01-ble
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
parent
223b6028bf
commit
9cddd4a8b1
@ -150,6 +150,9 @@ pkg_check_modules (MODBUS libmodbus>=3.1.2)
|
|||||||
# Check for OPENZWAVE
|
# Check for OPENZWAVE
|
||||||
pkg_check_modules (OPENZWAVE libopenzwave)
|
pkg_check_modules (OPENZWAVE libopenzwave)
|
||||||
|
|
||||||
|
# Check for TinyB
|
||||||
|
pkg_check_modules (TINYB tinyb>=0.5.1)
|
||||||
|
|
||||||
# Find JPEG
|
# Find JPEG
|
||||||
find_package (JPEG)
|
find_package (JPEG)
|
||||||
|
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
set (libname "2jciebu01-ble")
|
if (TINYB_FOUND)
|
||||||
set (libdescription "Omron BLE Environment Sensor")
|
set (libname "2jciebu01-ble")
|
||||||
set (module_src "2jciebu01_ble.cxx")
|
set (libdescription "Omron BLE Environment Sensor")
|
||||||
set (module_hpp "2jciebu01_ble.hpp")
|
set (module_src "2jciebu01_ble.cxx")
|
||||||
upm_module_init(2jciebu01-usb)
|
set (module_hpp "2jciebu01_ble.hpp")
|
||||||
|
|
||||||
|
set (reqlibname "libtinyb")
|
||||||
|
upm_module_init(2jciebu01-usb ${TINYB_LIBRARIES})
|
||||||
|
target_include_directories(${libname} PUBLIC ${TINYB_INCLUDE_DIRS})
|
||||||
|
endif()
|
Loading…
x
Reference in New Issue
Block a user