[CMake] Finding QT3 inc bin and lib directory

Martin Baumann mailsgetlost at web.de
Sun Oct 16 20:56:48 EDT 2005


Hi,

for a cmake project I need inc bin and lib directory of a QT3 installation. I have a file that should search for the directories automatically (like VTK does). My problem: for this project it is necessary to use a QT3 version. If users have installed different versions at a time (QT3 and QT4 for example) the searching function might find the wrong version.

Here is the file:

------------------------------------------------------------------------------------
# Try to find QT3 binary library and include dir.
# Once done this will define
#
# QT_INCLUDE      - where the vtkCell.h can be found
# QT_LIBRARY      - Link this to use VTK
# QT_BINARY

FIND_PATH(QT_INCLUDE qt.h 
	/usr/include/QT3.3.5 
	/usr/local/include/QT3.3.5 
	/usr/openwin/share/include/QT3.3.5 
	/usr/X11R6/include/QT3.3.5 
)

FIND_LIBRARY(QT_LIBRARY qt
	/usr/lib/QT3.3.5 
	/usr/local/lib/QT3.3.5 
	/usr/openwin/lib/QT3.3.5 
	/usr/X11R6/lib/QT3.3.5
)

FIND_PATH(QT_BINARY moc
	/usr/bin 
	/usr/local/bin/QT3.3.5 
	/usr/local/QT3.3.5 
)
------------------------------------------------------------------------------------

Any idea?

Thanks, Martin
______________________________________________________________________
XXL-Speicher, PC-Virenschutz, Spartarife & mehr: Nur im WEB.DE Club!		
Jetzt gratis testen! http://freemail.web.de/home/landingpad/?mc=021130



More information about the CMake mailing list