On 4 November 2017 at 05:12, Xavier Bigand <flamaros.xav...@gmail.com> wrote: > Hello, > > I recently added some unit tests to a personal project made with qbs, and I > am interested to do something similar on my work project. > > > We already have some hand made tests that are launched at start up, it start > to be not enough and I am interested to go deeper with better reports and a > separated binary. > But as our project is big, I want to know if there is a way to share .o > files between the main project and the tests sub project. > Our project is made with qmake and .a pro file, we also use shadow builds.
Depending on how many '.o' you want, you could: - If it's just a a few: include the header and the cpp unit in your test itself. - If there are more: bundle all your object in a static library. Chris > > > -- > Xavier > > _______________________________________________ > Interest mailing list > Interest@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest > _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest