mirror of
https://github.com/eclipse/upm.git
synced 2025-03-31 21:00:01 +03:00

To make room for UPM C and C++ sensor code to coexist, all UPM C++ headers have been renamed from h -> hpp. This commit contains updates to documentation, includes, cmake collateral, examples, and swig interface files. * Renamed all cxx/cpp header files which contain the string 'copyright intel' from .h -> .hpp (if not already hpp). * Replaced all references to .h with .hpp in documentation, source files, cmake collateral, example code, and swig interface files. * Replaced cmake variable module_h with module_hpp. * Intentionally left upm.h since this file currently does not contain code (documentation only). Signed-off-by: Noel Eck <noel.eck@intel.com>
29 lines
1.2 KiB
CMake
29 lines
1.2 KiB
CMake
set (libname "e50hx")
|
|
set (libdescription "upm module for the Veris E50HX (E50H2/E50H5)Energy Meters")
|
|
set (module_src ${libname}.cxx)
|
|
set (module_hpp ${libname}.hpp)
|
|
|
|
pkg_search_module(BACNET libbacnet)
|
|
if (BACNET_FOUND)
|
|
# upm-libbacnetmstp will bring in libbacnet, I hope
|
|
set (reqlibname "upm-bacnetmstp")
|
|
include_directories(${BACNET_INCLUDE_DIRS})
|
|
include_directories("../bacnetmstp")
|
|
upm_module_init()
|
|
target_link_libraries(${libname} bacnetmstp)
|
|
if (BUILDSWIG)
|
|
if (BUILDSWIGNODE)
|
|
set_target_properties(${SWIG_MODULE_jsupm_${libname}_REAL_NAME} PROPERTIES SKIP_BUILD_RPATH TRUE)
|
|
swig_link_libraries (jsupm_${libname} bacnetmstp ${MRAA_LIBRARIES} ${NODE_LIBRARIES})
|
|
endif()
|
|
if (BUILDSWIGPYTHON)
|
|
set_target_properties(${SWIG_MODULE_pyupm_${libname}_REAL_NAME} PROPERTIES SKIP_BUILD_RPATH TRUE)
|
|
swig_link_libraries (pyupm_${libname} bacnetmstp ${PYTHON_LIBRARIES} ${MRAA_LIBRARIES})
|
|
endif()
|
|
if (BUILDSWIGJAVA)
|
|
set_target_properties(${SWIG_MODULE_javaupm_${libname}_REAL_NAME} PROPERTIES SKIP_BUILD_RPATH TRUE)
|
|
swig_link_libraries (javaupm_${libname} bacnetmstp ${MRAAJAVA_LDFLAGS} ${JAVA_LDFLAGS})
|
|
endif()
|
|
endif()
|
|
endif ()
|