[CMake] How to use VTK as an ExternalProject

2011-02-07 Thread Nicolas Rannou
Hello, I would like to set up a "superbuild" for my project. I would like it to be as clean/basic as possible. Let's say I want to build VTK as my "ExternalProject". How should I proceed to link it to my current project. My current project requires VTK to be built. So FIND_PACKAGE cannot work

Re: [CMake] How to use VTK as an ExternalProject

2011-02-07 Thread Nicolas Rannou
IR}/GoFigure2-build > DEPENDS > VTK > ) > > Looking at both Slicer and CTK, you will also be able to grab some code ... > > Nevertheless, note that CTK buildsystem is a little bit more complex since > it's able to include the external project dynamically dependin

[CMake] fixup_bundle() on linux

2011-02-23 Thread Nicolas Rannou
Hi all, We develop a cmake-based application. We create several libraries which are linked to VTK and ITK libraries. ADD_LIBRARY( *QGoGui* ${QGoGUILIB_SRC} ${QGoGUILIB_MOC} ${QGoGUI_QRC} ) SET( QGoGUI_LIBS ITKStatistics ... ) TARGET_LINK_LIBRARIES( *QGoGui* ${QGoGUI_LIBS} ) IN

Re: [CMake] Build doesn't work with Mac OS X Lion...

2011-12-08 Thread Nicolas Rannou
What about moving to 64 bits? (which I guess is more relevant for Lion apps) In your build directory: ccmake . Then modify: CMAKE_OSX_ARCHITECTURES x86_64 CMAKE_OSX_DEPLOYMENT_TARGET 10.7 CMAKE_OSX_SYSROOT/Developer/SDKs/MacOSX10.7.sdk Nicolas On Tue, Dec 6, 201

[CMake] VTK with QT options: VTK_USE_QVTK not ava ilable

2009-09-15 Thread Nicolas RANNOU
Hello, I'm working with ubuntu 9.04 I compiled QT(4.5.2) doing ./configure, make, make install. Then I downloaded cmake (2.6.4) : sudo apt-get install cmake Now I downloaded the sources of VTK(5.4.2) and VTK Data and I want to compile it. I want to use VTK with QT. so I go in the folder where

[CMake] ctest and ctest -D Experimental give different results with VTK_DEBUG_LEAKS ON

2010-06-25 Thread Nicolas Rannou
Hello, I experienced a strange behaviour using ctest and I was wondering if it is a bug or the normal behaviour. 1) Build VTK with VTK_DEBUG_LEAKS to ON 2) Create a vtk leak in the test. 3) Run ctest on my machine, it tells me the test passed (doesn't catch vtk leaks). $ ctest -R 3d Tes