if (MODBUS_FOUND) set (libname "t3311") set (libdescription "Module for the Comet System T3311") set (module_src ${libname}.cxx) set (module_hpp ${libname}.hpp) set (reqlibname "libmodbus") upm_module_init(${MODBUS_LIBRARIES}) target_include_directories(${libname} PUBLIC ${MODBUS_INCLUDE_DIRS}) endif ()