[Insight-developers] How do I make a module default to Off?

Xiaoxiao Liu xiaoxiao.liu at kitware.com
Wed Oct 31 15:18:34 EDT 2012


On Wed, Oct 31, 2012 at 3:14 PM, Williams, Norman K <
norman-k-williams at uiowa.edu> wrote:

> I'm giving up for the moment on getting DCMTK ImageIO working on Windows
> with Visual Studios. The unix-like targets should work fine but there is a
> hideous thicket of configuration problems that the Visual Studio build
> system introduces, that I intend to either return to eventually or leave
> to someone who thinks they can resolve them.
>
> What I want to do now is this: If the compiler is MSVC, then ITKDCMTK and
> ITKIODCMTK modules are turned off by default.  If the user turns them on,
> then only for MSVC require ITK_USE_SYSTEM_DCMTK to be On.
>
> To enforce that requirement for ITK_USE_SYSTEM_DCMTK I can add some logic
> to Modules/ThirdParty/DCMTK/itk-module-init.cmake.
>
> What I don't understand is where and how modules like
> Modules/Bridge/VtkGlue are forced to default to OFF.
>
>
>> Checkout the usage of "EXCLUDE_FROM_ALL" in itk-module.cmake of those
modules.




> If anyone is really ambitious and is a Visual Studio whiz, they can take a
> look at http://review.source.kitware.com/#/c/7830/
>
> Brad King was extremely helpful with getting things working under OSX and
> Linux and got most of the way there with Windows/Visual Studio.  The
> problem with Visual Studio is that apparently, once DCMTK gets built as an
> external project, all the programs that link to the DCMTK libraries fail
> because the DCMTK libraries found depend on the wrong versions of Visual
> Studio system libraries.
>
> --
> Kent Williams norman-k-williams at uiowa.edu
>
>
>
>
>
>
> ________________________________
> Notice: This UI Health Care e-mail (including attachments) is covered by
> the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is
> confidential and may be legally privileged.  If you are not the intended
> recipient, you are hereby notified that any retention, dissemination,
> distribution, or copying of this communication is strictly prohibited.
>  Please reply to the sender that you have received the message in error,
> then delete it.  Thank you.
> ________________________________
> _______________________________________________
> 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.php
>
> 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/pipermail/insight-developers/attachments/20121031/0a472cd0/attachment.htm>


More information about the Insight-developers mailing list