mirror of
https://github.com/eclipse/upm.git
synced 2025-03-24 09:20:39 +03:00

* 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>
21 lines
696 B
CMake
21 lines
696 B
CMake
set (libname "bacnetmstp")
|
|
set (libdescription "upm driver module for BACnet MS/TP devices")
|
|
set (module_src ${libname}.cxx device-client.c bacnetutil.cxx)
|
|
set (module_hpp ${libname}.hpp bacnetutil.hpp)
|
|
|
|
if (BACNET_FOUND)
|
|
set (reqlibname "libbacnet")
|
|
include_directories(${BACNET_INCLUDE_DIRS})
|
|
upm_module_init()
|
|
target_link_libraries(${libname} ${BACNET_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
|
|
if (BUILDSWIGNODE)
|
|
swig_link_libraries (jsupm_${libname} ${BACNET_LIBRARIES})
|
|
endif()
|
|
if (BUILDSWIGPYTHON)
|
|
swig_link_libraries (pyupm_${libname} ${BACNET_LIBRARIES})
|
|
endif()
|
|
if (BUILDSWIGJAVA)
|
|
swig_link_libraries (javaupm_${libname} ${BACNET_LIBRARIES})
|
|
endif()
|
|
endif ()
|