Re: [CMake] Dependency managment

2018-12-12 Thread Attila Krasznahorkay
Hi Gabriele, What do you mean exactly by "we can compile libA but we cannot compile libB without installing libA because the latter needs it"? o.O Are you trying to find libA in libs/libB/CMakeLists.txt with find_package(...)? "Normal" targets (libraries and executables) should be globally

[CMake] Dependency managment

2018-12-12 Thread Ciccio Pasticcio
Hi all, we are trying to re-design the build system of an existing complex project using cmake. We have a source tree such this (it is only an example to help explaining the problem) . └── libs ├── CMakeLists.txt ├── libA │ ├── CMakeLists.txt │ ├── include │ │ └──