Re: [CMake] Build the dependencies tree of an executable

2011-07-22 Thread Glenn Coombs
Have you tried using target_link_libraries(A D E F) in A/Deps.cmake instead of add_dependencies ? I think that the add_dependencies command only enforces a build order between targets. I don't think it actually adds libraries to the link line. On 18 July 2011 17:54, Marco Corvo wrote: > Hi all

Re: [CMake] Build the dependencies tree of an executable

2011-07-22 Thread Yuri Timenkov
Hi Marco, I think target_link_libraries and add_dependencies are not applicable to imported targets. You should set IMPORTED_LINK_INTERFACE_LIBRARIES property instead. I don't remember exactly, but I solved similar problem. You can also try creating sample project with dependent static libraries

[CMake] Build the dependencies tree of an executable

2011-07-18 Thread Marco Corvo
Hi all, I'm facing the following problem trying to generate the dependencies tree of an executable. I have a working area /path/to/my/working/area/MyPackage with, say, one executable I want to build. The relevant CMakeLists.txt line is something like: add_executable(App src/App.cc) target_