From: Wheeler, Frederick W \(GE, Research\) <wheeler@cr...> - 2006-01-12 17:03:09
> On Thu 12 Jan 2006, William Wallace wrote:
> > Another question regarding linking..are there any generic=20
> rules by which one
> > can guess what will be the libraries to link against for a=20
> > program using vxl? I mean I am doing this currently by=20
> looking at the errors
> > generated by my compiler...is there a better way?
> You can look at the TARGET_LINK_LIBRARIES commands in the
> CMakeLists.txt files. But you'd need to follow them down recursively.
> You could also look at *_LIB_DEPENDS in the CMakeCache.txt file in
> the binary tree. It summarizies essentially the same information
> you'd glean from reading the CMakeLists.txt files, but is platform
> The ultimate answer to your question, though, is probably "no".
If you are building your project with CMake, then all you need to know =
is that if you are using something from VXL that starts with xyz_, then =
you need to link with the xyz library (LINK_LIBRARIES(...)). xyz can be =
vil, vgl, vnl, etc. CMake will handle all the dependencies on other =
libraries that you are not directly using.