[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 Jean-Christophe Fillion-Robin
Hi Nicolas, To properly use the superbuild feature, you could structure your project as described below: PROJ-SRC/CMakeLists.txt PROJ-SRC/Superbuild.cmake PROJ-SRC/CMakeExternals/External-VTK.cmake Within CMakeLists.txt, by default the variable USE_SUPERBUILD will be ON. If this variable is ON,

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

2011-02-07 Thread Nicolas Rannou
Thanks JC, That's how we did it but we were wondering if there was another straight forward solution without calling GOFIGURE2 as an External Project with -DUSE_SUPERBUILD:BOOL=OFF. So we will stay with this SuperBuild style but we might have to meet the CTK SuperBuild style at some point. We