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
|
|
|
|
2016-05-12 16:24:40 -07:00
|
|
|
pkg_check_modules(OPENZWAVE libopenzwave)
|
2015-10-23 18:00:33 -06:00
|
|
|
if (OPENZWAVE_FOUND)
|
|
|
|
|
set (reqlibname "libopenzwave")
|
|
|
|
|
include_directories(${OPENZWAVE_INCLUDE_DIRS})
|
|
|
|
|
upm_module_init()
|
|
|
|
|
target_link_libraries(${libname} ${OPENZWAVE_LIBRARIES})
|
|
|
|
|
if (BUILDSWIG)
|
|
|
|
|
if (BUILDSWIGNODE)
|
2016-04-29 15:52:40 -06:00
|
|
|
swig_link_libraries (jsupm_${libname} ${OPENZWAVE_LIBRARIES})
|
2015-10-23 18:00:33 -06:00
|
|
|
endif()
|
|
|
|
|
if (BUILDSWIGPYTHON)
|
2016-04-29 15:52:40 -06:00
|
|
|
swig_link_libraries (pyupm_${libname} ${OPENZWAVE_LIBRARIES})
|
2015-10-23 18:00:33 -06:00
|
|
|
endif()
|
|
|
|
|
endif()
|
|
|
|
|
endif ()
|