[Insight-developers] Dual Purposing ITK External Module
Xiaoxiao Liu
xiaoxiao.liu at kitware.com
Wed Jul 6 22:37:45 EDT 2011
Brad,
An external module is nothing but an internal module that is not checked
into the ITK source repository. If the code base needs to be standalone and
have different testing setup, it is more of an "app" to me, which could have
different directory structures and CMake configurations.
I put all my local modules in the source tree under Modules/External and
utilize all the modular itk CMake macros.
You probably could have dual functionality by putting several "IF"
statement to switch between "module" mode and " app" mode. But it probably
better to choose one mode.
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
>
>
--
---------------------------------------------
*Xiaoxiao Liu*, Ph.D.
R & D Engineer
Kitware Inc <http://www.kitware.com/>.
Clifton Park, NY
Phone: (518) 881-4924 or (518) 371-3971 x124
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20110706/e3d381ba/attachment.htm>
More information about the Insight-developers
mailing list