Rv3028 compilation error in C++, pimoroni_i2c not found

Hi, I’m using the RV3028 break out board with an interstate 75 using C++ using the libraries from GitHub - pimoroni/pimoroni-pico: Libraries and examples to support Pimoroni Pico add-ons in C++ and MicroPython.. When adding the breakout_rtc and rv3028 modules to my CMakeLists file, I get a compilation error “ld: cannot find -lpimoroni_i2c”. As far as I can tell there is no pimoroni_i2c module, it’s just the code in the common folder. I did manage to fix this by adding my own “pimoroni_i2c.cmake” but I’m not sure if this is a bug (something missing in the pimoroni-pico repository) or I’m just including these libraries wrong.

Here’s the broken code example from my CMakeLists.txt:

# Include required libraries
# This assumes `pimoroni-pico` is stored alongside your project
include(drivers/hub75/hub75)
include(drivers/button/button)
include(drivers/rgbled/rgbled)
include(libraries/breakout_rtc/breakout_rtc)
include(drivers/rv3028/rv3028)

# Don't forget to link the libraries you need!
target_link_libraries(${NAME}
    pico_stdlib
    pico_multicore
    hardware_i2c
    hub75
    rgbled
    button
    breakout_rtc
    rv3028
)

And here’s the fixed one, with my own custom pimoroni_i2c.cmake file:

# Include required libraries
# This assumes `pimoroni-pico` is stored alongside your project
include(drivers/hub75/hub75)
include(drivers/button/button)
include(drivers/rgbled/rgbled)
include(libraries/breakout_rtc/breakout_rtc)
include(drivers/rv3028/rv3028)
include(common/pimoroni_i2c)
# include(libraries/pico_display/pico_display)

# Don't forget to link the libraries you need!
target_link_libraries(${NAME}
    pico_stdlib
    pico_multicore
    hardware_i2c
    hub75
    rgbled
    button
    breakout_rtc
    rv3028
    pimoroni_i2c
)

Any help on how to do this correctly would be welcome,

Many thanks