Yeah I realized that it does not exists for Elastix, but it exists for ITK though. Maybe the Elastix developer will include it in a future release.<br><br><div class="gmail_quote">On Sun, Aug 2, 2009 at 12:29 AM, alexis lameire <span dir="ltr">&lt;<a href="mailto:alexisis-pristontale@hotmail.com">alexisis-pristontale@hotmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



<div>
<br><br><hr>Date: Sun, 2 Aug 2009 00:07:02 +0200<br>From: <a href="mailto:mort.motes@gmail.com" target="_blank">mort.motes@gmail.com</a><br>To: <a href="mailto:cmake@cmake.org" target="_blank">cmake@cmake.org</a><br>Subject: [CMake] How to use FIND_PACKAGE(xxx) ?<div>
<div></div><div class="h5"><br><br>I am building an application with cmake that depends on the Elastix  library:<br><br><a>http://elastix.isi.uu.nl/about.php</a><br><br>I have already build Elastix. I am trying to do the following in a CMakeLists.txt file:<br>

<br>------------------------------------------------------------------------------------------------------------------------------------<br># Find Elastix<br>FIND_PACKAGE(ELASTIX REQUIRED)<br>IF( ELASTIX_FOUND )<br>  INCLUDE( ${ELASTIX_USE_FILE} )<br>

ELSE( ELASTIX_FOUND )<br>  MESSAGE( FATAL_ERROR &quot;Cannot build without ELASTIX.  Please set ELASTIX_DIR.&quot; )<br>ENDIF( ELASTIX_FOUND )<br><br><br># I need to use the following:<br>INCLUDE_DIRECTORIES(${ELASTIX_SRC}/Core/Kernel)<br>

INCLUDE_DIRECTORIES(${ELASTIX_SRC}/Core/Configuration)<br>INCLUDE_DIRECTORIES(${ELASTIX_SRC}/Core/ComponentBaseClasses)<br><br>LINK_DIRECTORIES(G:/diku/speciale/local/lib/GnuWin32/src/zlib/1.2.3/zlib-1.2.3)<br>LINK_DIRECTORIES(${ELASTIX_BUILD})<br>

LINK_DIRECTORIES(${ELASTIX_BUILD}/Components/Optimizers/StandardGradientDescent)<br>------------------------------------------------------------------------------------------------------------------------------------<br>
<br>
But this does not work since ELASTIX_SRC and  ELASTIX_BUILD are not defined. I defined those manually earlier but is there no way to include the Elastix library in a more generic way?<br><br></div></div>to use find package an another developper must have creat findxxx.cmake macro ! <br>
this library is not yet implemented and you must creat manualy the findxxx.cmake script and distribut it with your program !<br><br><hr>Vous voulez savoir ce que vous pouvez faire avec le nouveau Windows Live ? <a href="http://www.microsoft.com/windows/windowslive/default.aspx" target="_blank">Lancez-vous !</a></div>

<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br>