[Insight-developers] Using ITKv4 Exported Targets In SimpleITK
    Brad King 
    brad.king at kitware.com
       
    Tue Oct  4 09:52:47 EDT 2011
    
    
  
On 10/4/2011 9:19 AM, Bradley Lowekamp wrote:
> I expected for cmake to just know that this executable was coming from the ITK project.
It is expected to work.  The itkTestDriver target should be imported by
   lib/cmake/ITK-4.0/ITKTargets.cmake
which is loaded by ITKConfig.cmake.  Once that happens then
   add_test(NAME ... COMMAND itkTestDriver ...)
should pick it up.  To verify that the imported target is defined, try adding
   if(TARGET itkTestDriver)
     message("have itkTestDriver target")
   endif()
to your CMake code just before the test is added.
-Brad K
    
    
More information about the Insight-developers
mailing list