Re: [CMake] Package found - passing _INCLUDE_DIRS to include_directories() and _LIBRARIES to target_link_libraries()

2014-07-19 Thread Michael Darling
I definitely want the automatic include directory adding, and also automatic target_link_library adding. I'm totally confused when I'd want to use an import target, and when I'd want to use an interface target, and what a good definition is for each. I see interface libraries state: "A primary us

Re: [CMake] How to get a list of all the static libraries that a target will link against ?

2014-07-19 Thread Glenn Coombs
Don't all shout at once :-) I'm guessing there are no easy solutions then... -- Glenn On 28 June 2014 14:33, Glenn Coombs wrote: > I have a project which compiles and links into both a stand alone > executable and a dynamic shared library. The library and the executable > link against the sa

Re: [CMake] Package found - passing _INCLUDE_DIRS to include_directories() and _LIBRARIES to target_link_libraries()

2014-07-19 Thread Hendrik Sattler
Hi, I'm not sure that ~ is supported directly. HS On 19. Juli 2014 04:31:23 MESZ, Michael Darling wrote: >http://www.cmake.org/Wiki/CMake:How_To_Find_Libraries#How_package_finding_works > >seems to indicate if _FOUND is found, the >_INCLUDE_DIRS is passed to the include_directories() >command,

Re: [CMake] find_package and INTERFACE targets in 3.0

2014-07-19 Thread Hendrik Sattler
Hi, for DLLs, the .lib part has it's own property IMPORTED_IMPLIB. This is already the case for older versions of CMake but at least the Qt4 find module makes no use of it. In our own project, we use global imported targets with dll and import lib set (and other properties like includes) and u