Re: [CMake] Automatic inclusion of import targets found by find_package()?

2016-07-10 Thread Robert Dailey
On Sun, Jul 10, 2016 at 5:11 PM, Stephen Kelly wrote: > Robert Dailey wrote: > >> Is there more automation here that I'm not seeing? Thanks in advance. > > Yes, the documentation tells you to include what you need in the config > file: > > >

Re: [CMake] Automatic inclusion of import targets found by find_package()?

2016-07-10 Thread Stephen Kelly
Robert Dailey wrote: > Is there more automation here that I'm not seeing? Thanks in advance. Yes, the documentation tells you to include what you need in the config file: https://cmake.org/cmake/help/v3.6/manual/cmake-packages.7.html#creating-a-package-configuration-file Thanks, Steve.

[CMake] Automatic inclusion of import targets found by find_package()?

2016-07-10 Thread Robert Dailey
Let's say I have my own upstream library and I export a target for it. This subsequent cmake file (containing my IMPORT target definition) is included with my tarball. When a consuming project wants to find and use my import targets, they currently have to do (consider this pseudocode since i