[Cmake] FIND_LIBRARY and regular expr.
Andy Cedilnik
andy.cedilnik at kitware.com
Tue, 27 Jan 2004 09:40:15 -0500
Hi David,
What we do is the following:
FIND_LIBRARY(PYTHON_LIBRARY
NAMES python23 python2.3
python22 python2.2
python21 python2.1
python20 python2.0
python16 python1.6
python15 python1.5
PATHS
/usr/lib/python2.3/config
/usr/lib/python2.2/config
/usr/lib/python2.1/config
/usr/lib/python2.0/config
/usr/lib/python1.6/config
/usr/lib/python1.5/config
/usr/lib
/usr/local/lib
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.3\\InstallPath]/libs
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.2\\InstallPath]/libs
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.1\\InstallPath]/libs
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.0\\InstallPath]/libs
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\1.6\\InstallPath]/libs
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\1.5\\InstallPath]/libs
)
Andy
On Tue, 2004-01-27 at 09:18, David Svoboda wrote:
> is there any way possible way to search for any librareis with regular
> expression? For example, I'm searching for the library libmyapp.so, but I
> apriori do not know whether the name of the library is libmyapp3.so or
> libmyapp4.so - i.e. I do not know the version. It is based on the chosen
> directory, where the lib files are stored -> the different directory, the
> different version.
>
> So, let us come back to my question, is it possible to write something
> simmilar to:
>
> FIND_LIBRARY(MYLIB myapp.* ${SPECIAL_DIR})