[CMake] capturing dependency on external library
Crni Gorac
cgorac at gmail.com
Sat Dec 2 06:19:40 EST 2006
We have a rather large project consisting of number of libraries and
executables. The development is split between multiple developers, and
we have an arrangement to actually have "make install" applied to
libraries, so that we don't have to put each library's source/build
directory into given executable project CMakeLists.txt file trough
INCLUDE_DIRECTORIES() and LINK_DIRECTORIES() commands. Also, libraries
have to be built as static, and the problem we are encountering is that
after doing "make install" for a new build of given library and getting
back to executable depending on this library and trying "make", it is
not recognized that library has changed and executable is not rebuilt.
So what we need is practically for executable "foo" and library
"libbar.a" to have following rule added to makefile:
foo: /some/path/to/libbar.a
What would be best way to capture this kind of dependency with CMake?
Thanks.
More information about the CMake
mailing list