Re: [CMake] List all binaries associated with a target.

2015-03-22 Thread Roman Bolshakov
2015-03-16 23:22 GMT+03:00 Klaim - Joël Lamotte : > Then you can invoke top-level cmake_install.cmake to install a subset >> of your project: >> DESTDIR=/destination/install/path cmake -DCOMPONENT=A -P >> cmake_install.cmake >> >> > It is not clear to me how all this would help installing automati

Re: [CMake] List all binaries associated with a target.

2015-03-22 Thread Roman Bolshakov
> > Unfortunately, if my understanding is correct, > this code cannot work with external dependencies as they are not targets. It should work with external dependencies which are imported targets. You just need to check IMPORTED property is True and then you can extract precise location from IMPO

Re: [CMake] Unreliable Find*.conf

2015-03-22 Thread Damian Philipp
Hello, Am 18.03.15 um 13:28 schrieb Hendrik Sattler: > CMAKE_PREFIX_PATH is possibly a list so the above does not always work. > IIRC Just use > PATH_SUFFIXES bin > instead. > And use find_ library() instead. I wanted to test this, but for some reason cmake suddenly finds everything without

Re: [CMake] Unreliable Find*.conf

2015-03-22 Thread Damian Philipp
Hello cmake-experts, Am 18.03.15 um 07:59 schrieb Rolf Eike Beer: > Use find_library() to find the library itself. If you really need the library > directory (you probably don't) then use get_filename_component() on the > library > location returned by find_library(). thank you, this helped. I