Just putting this here for anyone else that needs this info. So they don't spend time on it needlessly.
I was trying to build my QtQuick project using Cmake and ROS2 but had the hardest time trying to figure out how to add custom modules and other files from an existing QML project to the CMakeLists of my ROS2 package. I knew from QT's CMake template instructions that I needed to put these files into a .qrc file. But it wasn't feasible to go through each file in the QML project and add them manually to a resource file, so I needed a way to auto-generate it.
So if you need to generate a
.qrcfile from your QML project you:Now you're all set to add this new
.qrcto your CMakeLists.txt