On 6/5/16, Bill Somerville <b...@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
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to