This module implements support for the Comet System T3311 Temperature and Humidity transmitter. It uses MODBUS over an RS232 serial port. You must have libmodbus v3.1.2 (or greater) installed to compile and use this driver. Signed-off-by: Jon Trulson <jtrulson@ics.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
22 lines
714 B
CMake
22 lines
714 B
CMake
set (libname "t3311")
|
|
set (libdescription "upm module for the Comet System T3311")
|
|
set (module_src ${libname}.cxx)
|
|
set (module_h ${libname}.h)
|
|
|
|
pkg_search_module(MODBUS libmodbus)
|
|
if (MODBUS_FOUND)
|
|
set (reqlibname "libmodbus")
|
|
include_directories(${MODBUS_INCLUDE_DIRS})
|
|
upm_module_init()
|
|
add_dependencies(${libname} ${MODBUS_LIBRARIES})
|
|
target_link_libraries(${libname} ${MODBUS_LIBRARIES})
|
|
if (BUILDSWIG)
|
|
if (BUILDSWIGNODE)
|
|
swig_link_libraries (jsupm_${libname} ${MODBUS_LIBRARIES} ${MRAA_LIBRARIES} ${NODE_LIBRARIES})
|
|
endif()
|
|
if (BUILDSWIGPYTHON)
|
|
swig_link_libraries (pyupm_${libname} ${MODBUS_LIBRARIES} ${PYTHON_LIBRARIES} ${MRAA_LIBRARIES})
|
|
endif()
|
|
endif()
|
|
endif ()
|