Fwd: Re: [CMake] CMake for Qt4 (UPDATE 2) (Jens Henrik Goebbert)

Clinton Stimpson clinton at elemtech.com
Fri Apr 22 14:27:03 EDT 2005


One typo... 
QVTK doesn't depend on Qt's opengl module, so don't link with 
${QT_QTOPENGL_LIBRARY}.
VTK provides *all* the OpenGL services (or Mesa if that is being used 
instead).

Clint

>
>----------------------------------------------------------------------
>
>Message: 1
>Date: Fri, 22 Apr 2005 18:50:03 +0200
>From: Jens Henrik Goebbert <jens.goebbert at post.rwth-aachen.de>
>Subject: Fwd: Re: [CMake] CMake for Qt4 (UPDATE 2)
>To: cmake at cmake.org
>Message-ID: <200504221850.04054.jens.goebbert at post.rwth-aachen.de>
>Content-Type: text/plain; charset="iso-8859-1"
>
>Hi Qt-friends ;)
>
>Here another update (it will be the last for now ... it works on my computer
>without problems).
>FindQt4.cmake:
>  It sets QT_QT_LIBRARY and QT_QTMAIN_LIBRARY to "" in FindQt4.cmake
>  to have  better compatibility. Some typos are corrected, too.
>FindQt.cmake:
>  Change qt_version_str back to x.y.z format for better reading
>  in  status-messages.
>
>To show how easy it is to make a CMakeLists.txt work with FindQt4.cmake
>compare the CMakeLists_original.cmake and CMakeLists.cmake which is taken
> from VTK/GUISupport/Qt (CVS) of www.vtk.org.
>
>Bye
>	Jens Henrik
>
><snip>
>
>
>IF(QT_INST_MAJVERSION GREATER 3)
>	# libs for Qt4
>	TARGET_LINK_LIBRARIES( QVTK 
>	   ${QT_QTGUI_LIBRARY} 
>	   ${QT_QTCORE_LIBRARY} 
>	   ${QT_QTOPENGL_LIBRARY} 
>	   vtkRendering 
>	   vtkGraphics
>	   vtkImaging 
>	   vtkCommon)
>ELSE(QT_INST_MAJVERSION GREATER 3)
>	# libs for Qt < 4
>	TARGET_LINK_LIBRARIES( QVTK 
>	   ${QT_QT_LIBRARY} 
>	   vtkRendering 
>	   vtkGraphics
>	   vtkImaging 
>	   vtkCommon
>	)
>ENDIF(QT_INST_MAJVERSION GREATER 3)
>
><snip>
>  
>



More information about the CMake mailing list