# Runtime-loadable Modbus RTU parser + framer plugin
add_library(modbus_rtu SHARED
    plugin_stub.cpp
    parser/ModbusRtuProtocolPlugin.cpp
    mapper/ModbusRtuProtocolMapperPlugin.cpp
    codec/ModbusRtuCodec.cpp
    framer/ModbusRtuFramerPlugin.cpp
    framer/ModbusRtuFraming.cpp
)
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")
