[cmake-developers] How should Mac frameworks work?
Stephen Kelly
steveire at gmail.com
Tue Jul 2 11:12:00 EDT 2013
Clinton Stimpson wrote:
> Yeah, I understand that is the issue.
> I don't quite get what is new for Qt 5.1. I thought Qt 4.x only installed
> Qt headers inside the framework too. Perhaps its new from 5.0 to 5.1?
Yes.
>
> On a Mac with a prebuilt Qt 4.7
> qmake -query QT_INSTALL_HEADERS => /usr/include
> The only Qt headers under there are the headers for the QtUiTools module
> which is a static library and not a framework.
> That is why we had this in FindQt4.cmake/UseQt4.cmake
> include_directories("/path/to/QtCore.framework;/usr/include")
> which produced a "-F/path/to" and "-I/usr/include" compile flags.
>
Ok, so maybe what I need is to add the path to the framework to the
INTERFACE_INCLUDE_DIRECTORIES of each target?
As a feature, would it make sense to make that unnecessary in a future CMake
version?
Thanks,
Steve.
More information about the cmake-developers
mailing list