Switch the calls from pkg_search_module to pkg_check_modules for ozw, bacnet, and modbus. Check prints out the version when found. Signed-off-by: Noel Eck <noel.eck@intel.com>
21 lines
635 B
CMake
21 lines
635 B
CMake
set (libname "ozw")
|
|
set (libdescription "upm module for the OpenZWave library interface")
|
|
set (module_src ${libname}.cxx zwNode.cxx)
|
|
set (module_hpp ${libname}.hpp)
|
|
|
|
pkg_check_modules(OPENZWAVE libopenzwave)
|
|
if (OPENZWAVE_FOUND)
|
|
set (reqlibname "libopenzwave")
|
|
include_directories(${OPENZWAVE_INCLUDE_DIRS})
|
|
upm_module_init()
|
|
target_link_libraries(${libname} ${OPENZWAVE_LIBRARIES})
|
|
if (BUILDSWIG)
|
|
if (BUILDSWIGNODE)
|
|
swig_link_libraries (jsupm_${libname} ${OPENZWAVE_LIBRARIES})
|
|
endif()
|
|
if (BUILDSWIGPYTHON)
|
|
swig_link_libraries (pyupm_${libname} ${OPENZWAVE_LIBRARIES})
|
|
endif()
|
|
endif()
|
|
endif ()
|