[CMake] HOW DO I: Build VTK with CMake/ExternalProject_add against Qt with Cocoa on OS X?

Michael Wild themiwi at gmail.com
Tue Apr 13 13:45:40 EDT 2010


On 13. Apr, 2010, at 16:19 , kent williams wrote:

> I've descended into a confusing morass of complicated CMake macros,
> and I need help getting out!
> 
> The situation is this:  I didn't have much trouble building VTK with
> QT as long as I stuck with Carbon.  Now I'm running into some serious
> problems (phantom dependencies on X11 libraries, for starters) when I
> try to use QT/Cocoa -- which is necessary, according to my boss, to
> build on OS X 10.6.
> 
> So does anyone have a successful example of building VTK against QT
> using ExternalProject?


I usually first build the external project "stand-alone" to figure out all the parameters I have to pass in the CMAKE_ARGS argument. I find this to be much less confusing.

I just built VTK 5.4.2 on OS X 10.6.2 with qt-cocoa 4.6.1. Although CMake looks for X11, none of the libraries and executables links against it.

HTH

Michael



More information about the CMake mailing list