I've got two CMake projects and one builds a library needed for the other. I have set up both foo and bar as separate CMake projects and a top-level CMakeLists.txt to enable CLion's Code coverage. The folder structure looks like this:
├───cmake-build-debug
│ ├───foo
│ │ └───libfoo.a
│ └───bar
├───foo
│ ├───include
│ │ └───foo.h
│ └───src
│ └───src.cpp
└───bar
├───dependencies
│ └───foo
│ ├───include
│ └───lib
└───src
How can i move libfoo.a and foo.h into /include and /lib under the bar project respectively?