2015-10-23 18:00:33 -06:00
|
|
|
set (libname "ozw")
|
|
|
|
|
set (libdescription "upm module for the OpenZWave library interface")
|
|
|
|
|
set (module_src ${libname}.cxx zwNode.cxx)
|
2016-04-25 14:27:51 -07:00
|
|
|
set (module_hpp ${libname}.hpp)
|
2015-10-23 18:00:33 -06:00
|
|
|
|
|
|
|
|
pkg_search_module(OPENZWAVE libopenzwave)
|
|
|
|
|
if (OPENZWAVE_FOUND)
|
|
|
|
|
set (reqlibname "libopenzwave")
|
|
|
|
|
include_directories(${OPENZWAVE_INCLUDE_DIRS})
|
|
|
|
|
upm_module_init()
|
|
|
|
|
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 ()
|