Iosif, that's exactly it, I was not paying attention to the [ ] in the
docs! Thanks for your help.
On Mon, Oct 31, 2016 at 2:57 PM, iosif neitzke <
iosif.neitzke+cm...@gmail.com> wrote:
> Try something like:
> INSTALL( TARGETS foo ARCHIVE DESTINATION lib COMPONENT bar
>
On 10/31/2016 11:42 AM, Dave Flogeras wrote:
> Hi, are static libraries able to be added to a component?
Yes!
>
> The following minimal example doesn't work as I expected:
>
> CMAKE_MINIMUM_REQUIRED( VERSION 3.0.0 )
> PROJECT( foo )
>
> ADD_LIBRARY( foo foo.c )
> INSTALL( TARGETS foo ARCHIVE
Hi, are static libraries able to be added to a component?
The following minimal example doesn't work as I expected:
CMAKE_MINIMUM_REQUIRED( VERSION 3.0.0 )
PROJECT( foo )
ADD_LIBRARY( foo foo.c )
INSTALL( TARGETS foo ARCHIVE DESTINATION lib
RUNTIME DESTINATION bin