* Moved CMAKE_MODULE_PATH append hier in top-level CMakeLists file
so that it's before all calls to find_package.
* Added pkg_check_modules for BACNET, MODBUS, JPEG, and OPENZWAVE
to top-level CMakeLists file.
* Removed pkg_check_modules from individual sensor libraries.
* Simplified SWIG find_package call - require 3.0.5 for all SWIG
wrappers.
* Moved options to beginning of top-level CMakeLists.
Signed-off-by: Noel Eck <noel.eck@intel.com>
18 lines
523 B
CMake
18 lines
523 B
CMake
set (libname "hwxpxx")
|
|
set (libdescription "upm module for the Veris HWXPXX (HWXPHTX)")
|
|
set (module_src ${libname}.cxx)
|
|
set (module_hpp ${libname}.hpp)
|
|
|
|
if (MODBUS_FOUND)
|
|
set (reqlibname "libmodbus")
|
|
include_directories(${MODBUS_INCLUDE_DIRS})
|
|
upm_module_init()
|
|
target_link_libraries(${libname} ${MODBUS_LIBRARIES})
|
|
if (BUILDSWIGNODE)
|
|
swig_link_libraries (jsupm_${libname} ${MODBUS_LIBRARIES})
|
|
endif()
|
|
if (BUILDSWIGPYTHON)
|
|
swig_link_libraries (pyupm_${libname} ${MODBUS_LIBRARIES})
|
|
endif()
|
|
endif ()
|