2026-04-07 14:20:04 +08:00
|
|
|
# Runtime-loadable Modbus RTU parser + framer plugin
|
|
|
|
|
add_library(modbus_rtu SHARED
|
|
|
|
|
plugin_stub.cpp
|
2026-04-10 10:52:10 +08:00
|
|
|
parser/ModbusRtuProtocolPlugin.cpp
|
|
|
|
|
mapper/ModbusRtuProtocolMapperPlugin.cpp
|
|
|
|
|
codec/ModbusRtuCodec.cpp
|
|
|
|
|
framer/ModbusRtuFramerPlugin.cpp
|
|
|
|
|
framer/ModbusRtuFraming.cpp
|
2026-04-07 14:20:04 +08:00
|
|
|
)
|
|
|
|
|
target_include_directories(modbus_rtu PRIVATE
|
|
|
|
|
${CMAKE_SOURCE_DIR}
|
|
|
|
|
${CMAKE_SOURCE_DIR}/src
|
|
|
|
|
)
|
|
|
|
|
target_link_libraries(modbus_rtu PRIVATE Qt6::Core)
|
|
|
|
|
set_target_properties(modbus_rtu PROPERTIES OUTPUT_NAME "modbus_rtu")
|