2016-01-15 18:01:10 -07:00
|
|
|
set (libname "hwxpxx")
|
|
|
|
|
set (libdescription "upm module for the Veris HWXPXX (HWXPHTX)")
|
|
|
|
|
set (module_src ${libname}.cxx)
|
2016-04-25 14:27:51 -07:00
|
|
|
set (module_hpp ${libname}.hpp)
|
2016-01-15 18:01:10 -07:00
|
|
|
|
|
|
|
|
pkg_search_module(MODBUS libmodbus)
|
|
|
|
|
if (MODBUS_FOUND)
|
|
|
|
|
set (reqlibname "libmodbus")
|
|
|
|
|
include_directories(${MODBUS_INCLUDE_DIRS})
|
|
|
|
|
upm_module_init()
|
|
|
|
|
target_link_libraries(${libname} ${MODBUS_LIBRARIES})
|
|
|
|
|
if (BUILDSWIG)
|
|
|
|
|
if (BUILDSWIGNODE)
|
2016-04-29 15:47:13 -06:00
|
|
|
swig_link_libraries (jsupm_${libname} ${MODBUS_LIBRARIES})
|
2016-01-15 18:01:10 -07:00
|
|
|
endif()
|
|
|
|
|
if (BUILDSWIGPYTHON)
|
2016-04-29 15:47:13 -06:00
|
|
|
swig_link_libraries (pyupm_${libname} ${MODBUS_LIBRARIES})
|
2016-01-15 18:01:10 -07:00
|
|
|
endif()
|
|
|
|
|
endif()
|
|
|
|
|
endif ()
|