mirror of
https://github.com/eclipse/upm.git
synced 2025-03-20 07:27:29 +03:00

Small change to get rid of a warning in newer cmake versions. Versions of cmake (>= 3.0) throw a warning on the add_dependecy method for non-existant dependencies (add_dependency call before target_link_libraries call). Removed the call to add_dependency since target_link_libraries should provide the same functionality for ozw and modbus dependencies. Signed-off-by: Noel Eck <noel.eck@intel.com>
24 lines
803 B
CMake
24 lines
803 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()
|
|
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()
|
|
if (BUILDSWIGJAVA)
|
|
swig_link_libraries (javaupm_${libname} ${MODBUS_LIBRARIES} ${MRAAJAVA_LDFLAGS} ${JAVA_LDFLAGS})
|
|
endif()
|
|
endif()
|
|
endif ()
|