<br>Thanks for your reply ... would you mind telling me how to set simpleitk dir variable in my cmake file... I am using qtcreator with plain cmake list ... I already set up cmake module path variable with this directory that you mentioned but with no success .<br>
<br>.I am now rebuilding simple itk with the default setting where there is no shared libraries <br><br>Another question ... the cmake install prefix path is set by default to my build directory ... should I change this to something related to usr/local directory ... also I have already built and installed the latest version of itk .. does this affect or change anything in simpleitk building ...<br>
<br>Thanks and I hope you can help me figure out how to solve this .. I have been struggling with it all day long with no hope<br><br>Thanks<br>Shireen<br>On Saturday, March 9, 2013, Bradley Lowekamp &lt;<a href="mailto:blowekamp@mail.nih.gov">blowekamp@mail.nih.gov</a>&gt; wrote:<br>
&gt; Hello,<br>&gt;<br>&gt; The quick answer is in your project&#39;s configuration set the CMake variable &quot;SimpleITK_DIR&quot; to &quot;/PathToYouSimpleITKSuperbuid/lib/cmake/SimpleITK-0.6&quot;. This path should contain the SimpleITKConfig.cmake file and a couple other SimpleITK files. Alternatively, You should also be able to point this variable to the actual SimpleITK sub-build which would be  &quot;/PathToYouSimpleITKSuperbuid/SimpleITK-build&quot;.<br>
&gt;<br>&gt; Regarding the installation. The way Superbuilds install is a little different than expected. In short it happens during the Superbuild process. If you configure the &quot;CMAKE_INSTALL_PREFIX&quot; to the path you want ITK and SimpleITK installed, they will be installed during the superbuild.<br>
&gt;<br>&gt; The install only installs the C++ headers and libraries and not any of the Wrapped languages. Most of the wrapped languages have their own way to do things and configure modules, so that is not done by default.<br>
&gt;<br>&gt; Lastly, because you said you needed to set the LD_LIBRARY_PATH it sounds like you choose to use shared libraries? This adds a bit of complexity to things, so unless there is a good reason I would not recommend to it get started with.<br>
&gt;<br>&gt; Brad<br>&gt;<br>&gt;<br>&gt;<br>&gt; On Mar 9, 2013, at 5:01 PM, Shireen Elhabian &lt;<a href="mailto:shireen.youssef@gmail.com">shireen.youssef@gmail.com</a>&gt; wrote:<br>&gt;<br>&gt;&gt; Hi,<br>&gt;&gt;<br>
&gt;&gt; I have built SimpleITK using SuperBuild as recommended. There is not<br>&gt;&gt; make install rule for SimpleITK and I also updated LD_LIBRARY_PATH.<br>&gt;&gt;<br>&gt;&gt; Now I am trying to use it in my c++ projects (using cmake), but I am<br>
&gt;&gt; getting the following error, please tell me what I am missing here please<br>&gt;&gt;<br>&gt;&gt; CMake Error at CMakeLists.txt:13 (FIND_PACKAGE):<br>&gt;&gt;  By not providing &quot;FindSimpleITK.cmake&quot; in CMAKE_MODULE_PATH this project<br>
&gt;&gt;  has asked CMake to find a package configuration file provided by<br>&gt;&gt;  &quot;SimpleITK&quot;, but CMake did not find one.<br>&gt;&gt;<br>&gt;&gt;  Could not find a package configuration file provided by &quot;SimpleITK&quot; with<br>
&gt;&gt;  any of the following names:<br>&gt;&gt;<br>&gt;&gt;    SimpleITKConfig.cmake<br>&gt;&gt;    simpleitk-config.cmake<br>&gt;&gt;<br>&gt;&gt;  Add the installation prefix of &quot;SimpleITK&quot; to CMAKE_PREFIX_PATH or set<br>
&gt;&gt;  &quot;SimpleITK_DIR&quot; to a directory containing one of the above files.  If<br>&gt;&gt;  &quot;SimpleITK&quot; provides a separate development package or SDK, be sure it has<br>&gt;&gt;  been installed.<br>&gt;&gt; _____________________________________<br>
&gt;&gt; Powered by <a href="http://www.kitware.com">www.kitware.com</a><br>&gt;&gt;<br>&gt;&gt; Visit other Kitware open-source projects at<br>&gt;&gt; <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt;<br>&gt;&gt; Kitware offers ITK Training Courses, for more information visit:<br>&gt;&gt; <a href="http://www.kitware.com/products/protraining.php">http://www.kitware.com/products/protraining.php</a><br>&gt;&gt;<br>
&gt;&gt; Please keep messages on-topic and check the ITK FAQ at:<br>&gt;&gt; <a href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</a><br>&gt;&gt;<br>&gt;&gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a><br>&gt;<br>&gt;<br><br>-- <br>Shireen Y. Elhabian, PhD<br>Information Technology Dept.,<br>Faculty of Computers and Information,<br>
Cairo University<br>