I am battling a "A required package was not found" error from cmake.
Let's say I have software foo that depends on the bar library.
And libbar.a is installed in $HOME/lib with bar.h installed in $HOME/include directory.
With automake tools, you typically can point the build system to bar by using:
$ cd foo
$ ./configure --with-bar=$HOME
But how can I achieve the same with the cmake tool?
I want cmake to be smart enough to not only look in /usr/lib and /usr/local/lib for a library, but also in my $HOME/lib directory.