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) # contains the ITK source > > Since cmake 2.8 find_package now sets VTK_VERSION which is used > internally in ITK to determine if MetaIO is being build from VTK or > ITK. > Could someone please: > - confirm VTK_VERSION now appears as 5.6.0 since the update to cmake > 2.8 / vtk 5.6 > - could someone please suggest the correct way to detect if metaio if > build from ITK or not.
MetaIO should check for VTK_SOURCE_DIR and/or ITK_SOURCE_DIR. -Brad _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake