I’ve been playing with building an App using qmake as the build system. I started with a simple QT App built using the wizard in QTCreator and tweaking it.
I ran in to the problem that I needed to copy the SFML frameworks in to the App Bundle. The QT docs say to use the variable
QMAKE_BUNDLE_DATA to trigger the copy but I couldn’t get it to work in QT5.2.
1 2 3 4 5
No matter what I tried I couldn’t trigger the copying of the framework.
The work around I came up with involves adding a post link step to copy the frameworks using ditto
1 2 3 4 5 6 7
QMAKE_POST_LINK variable has a script to
- echo that it’s copying the frameworks across.
- make sure there is a framework directory in the App Bundle.
- Copy the SFML frameworks across.
- Copy the SFML external dependencies across.
Note I know there is a horrible hardcoded path in there that shouldn’t be there but this is just for testing!