ozw: Initial implementation
This module was developed using the OpenZWave library (v1.3): http://www.openzwave.com/ It was developed using a collection of devices (switches and a multi-sensor) connected via an Aeon Z-Stick Gen5 USB dongle. It can be used to query (and, where appropriate, set) Values on Nodes connected to the ZWave network. Checks are made in src/ozw/CMakeLists.txt to ensure that the libopenzwave library is installed (via pkg-config). If not present, then neither the module, nor the example will be built. Signed-off-by: Jon Trulson <jtrulson@ics.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
committed by
Mihai Tudor Panu
parent
287250b32d
commit
fd509c7d79
21
src/ozw/CMakeLists.txt
Normal file
21
src/ozw/CMakeLists.txt
Normal file
@@ -0,0 +1,21 @@
|
||||
set (libname "ozw")
|
||||
set (libdescription "upm module for the OpenZWave library interface")
|
||||
set (module_src ${libname}.cxx zwNode.cxx)
|
||||
set (module_h ${libname}.h)
|
||||
|
||||
pkg_search_module(OPENZWAVE libopenzwave)
|
||||
if (OPENZWAVE_FOUND)
|
||||
set (reqlibname "libopenzwave")
|
||||
include_directories(${OPENZWAVE_INCLUDE_DIRS})
|
||||
upm_module_init()
|
||||
add_dependencies(${libname} ${OPENZWAVE_LIBRARIES})
|
||||
target_link_libraries(${libname} ${OPENZWAVE_LIBRARIES})
|
||||
if (BUILDSWIG)
|
||||
if (BUILDSWIGNODE)
|
||||
swig_link_libraries (jsupm_${libname} ${OPENZWAVE_LIBRARIES} ${MRAA_LIBRARIES} ${NODE_LIBRARIES})
|
||||
endif()
|
||||
if (BUILDSWIGPYTHON)
|
||||
swig_link_libraries (pyupm_${libname} ${OPENZWAVE_LIBRARIES} ${PYTHON_LIBRARIES} ${MRAA_LIBRARIES})
|
||||
endif()
|
||||
endif()
|
||||
endif ()
|
||||
Reference in New Issue
Block a user