[CMake] Mac OS X framework building

Eric Wing ewmailing at gmail.com
Sun Jun 5 16:03:21 EDT 2016


On 6/5/16, Bill Somerville <bill at classdesign.com> wrote:
> On 24/05/2016 21:55, Bill Somerville wrote:
>> I am trying to make a framework using a shared library. The docs say
>> that the target property PUBLIC_HEADER should be a list of interface
>> header files that install(TARGET ...) will populate
>> .../<target>.framework/Headers/ with but I cannot get that to happen.
>> I have set the target property FRAMEWORK to TRUE and the target is a
>> SHARED library. The framework gets created with the Versions and
>> Resources directories etc. and the .plist file and the dylib is added
>> with all the relevant symlinks. No headers are being added and the
>> Headers directory is not being created.
>>
>> Can anyone help with what I am missing or provide a link to a project
>> that creates a Mac OS X framework successfully using install(TARGETS
>> ...)?
>

I use Frameworks all the time. But you need to use PUBLIC_HEADER in
SET_TARGET_PROPERTIES. It is part of the actual build, not part of
INSTALL.

Try referring to ALmixer as one example.
https://bitbucket.org/ewing/almixer

-Eric


More information about the CMake mailing list