<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hello,<div><br></div><div>The header file reside in the source directory of ITK[1], and does not need to be moved to the build directory where object files and libraries are created during the build process.</div><div><br></div><div>When the INSTALL target is run on the ITK project, all the libraries, cmake interface files along with the header, and template header files are copied to the specified installation directory.</div><div><br></div><div>When you use ITK with CMake, and find and include the ITK cmake[2] files, it will automatically add the correct include paths to the compiler for all the ITK files available for either of the above cases.</div><div><br></div><div>Does that explanation help?</div><div>Brad</div><div><br></div><div><br></div><div>[1] <a href="https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/Filtering/MathematicalMorphology/include/itkGrayscaleFillholeImageFilter.h">https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/Filtering/MathematicalMorphology/include/itkGrayscaleFillholeImageFilter.h</a></div><div>[2] <a href="https://github.com/InsightSoftwareConsortium/ITK/blob/master/Examples/CMakeLists.txt#L5-L6">https://github.com/InsightSoftwareConsortium/ITK/blob/master/Examples/CMakeLists.txt#L5-L6</a></div><div><br><div><div>On Jan 28, 2015, at 2:21 PM, Andy Diamond <<a href="mailto:adiamondcsi@gmail.com">adiamondcsi@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr"><div><div>Hi Matt, Brat, et. al.,<br></div>I'm still confused. Sorry for being dense. <br><br>Let me try this another way. Below is the start of a definition of a template class (in some header file I would think)<br><pre class="">template <class A_Type> class calc<br><span style="font-family:arial,helvetica,sans-serif">....<br><br>and here's a corresponding instantiation in some C++ file (.cpp)</span><br></pre><pre class="">calc <double> a_calc_class;</pre>How does compiler know what what the Identifier/type "calc" is? Doesn't it have to include the header with the definition so it doesn't come back with an error message of " 'calc' is an unknown identifier" or the like?<br><br></div><div>Of course, given such a header file, if I searched its directory for the string "calc" the search would at least return that header file as a file that contains "calc". <br><br></div><div>None of this seems to be the case with the class "GrayscaleFillholeImageFilter" </div><div><br></div><div>Thanks,<br></div><div>Andy<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 28, 2015 at 7:00 AM, Matt McCormick <span dir="ltr"><<a href="mailto:matt.mccormick@kitware.com" target="_blank">matt.mccormick@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
For the IDE project generators, we already add the header files to the<br>
projects so they will show up in the IDE [1]. But, there is still<br>
nothing to build for a header-only module and no .lib file will be<br>
generated.<br>
<br>
HTH,<br>
Matt<br>
<br>
[1] <a href="http://itk.org/gitweb?p=ITK.git;a=blob;f=CMake/ITKModuleMacros.cmake;h=c32a29eda33a0af9b7301d55e14d07567cc6f00f;hb=HEAD#l81" target="_blank">http://itk.org/gitweb?p=ITK.git;a=blob;f=CMake/ITKModuleMacros.cmake;h=c32a29eda33a0af9b7301d55e14d07567cc6f00f;hb=HEAD#l81</a><br>
<div class=""><div class="h5"><br>
On Wed, Jan 28, 2015 at 8:55 AM, Bradley Lowekamp<br>
<<a href="mailto:blowekamp@mail.nih.gov">blowekamp@mail.nih.gov</a>> wrote:<br>
> Matt,<br>
><br>
> Isn't there some CMake option to "add" header and template headers files to targets? The properties/option I recall reading said it only effected how the files where displaced in an IDE.<br>
><br>
> Perhaps this is what Andy was expecting? To see the headers as part of the project some place?<br>
><br>
> Brad<br>
><br>
> On Jan 27, 2015, at 11:19 PM, Matt McCormick <<a href="mailto:matt.mccormick@kitware.com">matt.mccormick@kitware.com</a>> wrote:<br>
><br>
>> Hi Andy,<br>
>><br>
>>> 1) Why didn't my search for GrayscaleFillholeImageFilter find anything say in a header file? are they pre compiled?<br>
>><br>
>> The header files are not pre-compiled. When you build your executable<br>
>> and specify the types you want to use in the template, the compiler<br>
>> generates the appropriate code.<br>
>><br>
>>> 2) Do you know how I can build just that test and example ( in msvc 11). Do I have to run cmake-gui all over again with the option checked for all the example and tests? Then what project would I need to build in msvc? I certainly don't want to build all the tests and examples as that takes forever<br>
>><br>
>> Yes, the options must be enabled in CMake -- it is all or nothing.<br>
>> Try some of the Sphinx Examples (see the link to the .zip file in the<br>
>> left column), to build just an individual example [1].<br>
>><br>
>> HTH,<br>
>> Matt<br>
>><br>
>> [1] <a href="http://itk.org/ITKExamples/src/Filtering/MathematicalMorphology/DilateAGrayscaleImage/Documentation.html" target="_blank">http://itk.org/ITKExamples/src/Filtering/MathematicalMorphology/DilateAGrayscaleImage/Documentation.html</a><br>
>><br>
>> PS. Please keep messages on the list so all can benefit.<br>
>><br>
>><br>
>>><br>
>>> thanks,<br>
>>> Andy<br>
>>> Sent from my iPhone<br>
>>><br>
>>>> On Jan 27, 2015, at 7:13 PM, Matt McCormick <<a href="mailto:matt.mccormick@kitware.com">matt.mccormick@kitware.com</a>> wrote:<br>
>>>><br>
>>>> Hi Andy,<br>
>>>><br>
>>>> Yes, since that module only contains templated headers, there is<br>
>>>> nothing to build. If BUILD_TESTING is ON, then the tests for that<br>
>>>> module would be built.<br>
>>>><br>
>>>> HTH,<br>
>>>> Matt<br>
>>>><br>
>>>>> On Tue, Jan 27, 2015 at 8:26 PM, Andy Diamond <<a href="mailto:adiamondcsi@gmail.com">adiamondcsi@gmail.com</a>> wrote:<br>
>>>>> I followed instructions in<br>
>>>>> <a href="http://www.itk.org/Wiki/ITK/Configuring_and_Building/VisualStudio" target="_blank">http://www.itk.org/Wiki/ITK/Configuring_and_Building/VisualStudio</a> but I'm<br>
>>>>> using Studio 12 (which is VC11?).<br>
>>>>><br>
>>>>> I used cmake GUI, which seemed to generate all the visual studio projects.<br>
>>>>> Note, to save time, as per the recommendations in the above link, I didn't<br>
>>>>> generate the test or examples. I loaded ITK.SLN, from the top level of<br>
>>>>> cmake-guis target, into VS and it ran saying it had no errors.<br>
>>>>><br>
>>>>> However, when I go to where it generate the libs there is no<br>
>>>>> ITKMathematicalMorphology.lib.<br>
>>>>><br>
>>>>> One of the projects listed in Visual Studio is<br>
>>>>> ITKMathematicalMorphology-all. It apparently has no source code (the<br>
>>>>> ITKMathematicalMorphology-all project has no Source Files section).<br>
>>>>> According to ITKs That library has a function (or whatever) called<br>
>>>>> GrayscaleFillholeImageFilter but there is no file in the entire build<br>
>>>>> directory tree (cmake-gui's target) with that string.<br>
>>>>><br>
>>>>> Even if it's all somehow templated away, shouldn't some header or whatever<br>
>>>>> file have GrayscaleFillholeImageFilter(otherwise what does it mean to list<br>
>>>>> it)<br>
>>>>><br>
>>>>> Thanks<br>
>>>>><br>
>>>>> _______________________________________________<br>
>>>>> Community mailing list<br>
>>>>> <a href="mailto:Community@itk.org">Community@itk.org</a><br>
>>>>> <a href="http://public.kitware.com/mailman/listinfo/community" target="_blank">http://public.kitware.com/mailman/listinfo/community</a><br>
>>>>><br>
>> _______________________________________________<br>
>> Community mailing list<br>
>> <a href="mailto:Community@itk.org">Community@itk.org</a><br>
>> <a href="http://public.kitware.com/mailman/listinfo/community" target="_blank">http://public.kitware.com/mailman/listinfo/community</a><br>
><br>
</div></div></blockquote></div><br></div></div>
</blockquote></div><br></div></body></html>