I would recommend using EXTERNALPROJECT_ADD.
http://www.cmake.org/cmake/help/cmake-2-8-docs.html#module:ExternalProject.
Though I am not building in ITK as of yet I am using VTKEdge which depends
on VTK
--snip vtkedge_config.cmake --
macro( vtkedge_config )
set( VTK_EDGE_PACKAGE VTKEdge-5-4-0
On 07/22/2010 09:43 AM, Mathieu Malaterre wrote:
> Hi there,
>
> I am trying to build ITK from a toplevel directory, my application
> is setup simply like this:
>
> $ cat CMakeLists.txt
> project(MySuperApp)
> find_package(VTK REQUIRED)
> message("${VTK_VERSION}")
> add_subdirectory(ITK) # cont
Hi there,
I am trying to build ITK from a toplevel directory, my application
is setup simply like this:
$ cat CMakeLists.txt
project(MySuperApp)
find_package(VTK REQUIRED)
message("${VTK_VERSION}")
add_subdirectory(ITK) # contains the ITK source
Since cmake 2.8 find_package now sets VTK_VERSIO