Re: [CMake] COMPONENT question

2016-10-31 Thread Dave Flogeras
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 >

Re: [CMake] COMPONENT question

2016-10-31 Thread iosif neitzke
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

[CMake] COMPONENT question

2016-10-31 Thread Dave Flogeras
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