[Insight-developers] Dual Purposing ITK External Module

Jean-Christophe Fillion-Robin jchris.fillionr at kitware.com
Wed Jul 6 12:00:27 EDT 2011


Hi Bradley,

Regarding your first question, what about the following:

if(ITK_SOURCE_DIR)

  message("build inside ITK as an external module ..")

endif()

Hth
Jc

On Wed, Jul 6, 2011 at 11:46 AM, Bradley Lowekamp <blowekamp at mail.nih.gov>wrote:

> Hello,
>
> I have always had a little itkLocal submodule ( or SVN equiv ) in my little
> project. I am hoping I can write a "module" so  that in can build inside ITK
> as an external module or outside as a stand alone.
>
> Is there any CMake variable I could check in my module CMakeLists.txt file
> to check to see if I am build build as an ITK external module?
>
> Is there any home of the CMake macros for the test directory working
> outside of ITK?
>
> Here is an example of a little module I was working on:
>
> https://github.com/blowekamp/itkLocalDiscreteHessian
>
> Thanks,
> Brad
>
> ========================================================
>
> Bradley Lowekamp
>
> Lockheed Martin Contractor for
>
> Office of High Performance Computing and Communications
>
> National Library of Medicine
>
> blowekamp at mail.nih.gov
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-developers
>
>


-- 
+1 919 869 8849
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20110706/a6f0277d/attachment.htm>


More information about the Insight-developers mailing list