<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<br><br><hr id="stopSpelling">Date: Sun, 2 Aug 2009 00:31:31 +0200<br>Subject: Re: [CMake] How to use FIND_PACKAGE(xxx) ?<br>From: mort.motes@gmail.com<br>To: alexisis-pristontale@hotmail.com<br>CC: cmake@cmake.org<br><br>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="EC_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="EC_gmail_quote" style="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">mort.motes@gmail.com</a><br>To: <a href="mailto:cmake@cmake.org">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&nbsp; 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>&nbsp; INCLUDE( ${ELASTIX_USE_FILE} )<br>

ELSE( ELASTIX_FOUND )<br>&nbsp; MESSAGE( FATAL_ERROR "Cannot build without ELASTIX.&nbsp; Please set ELASTIX_DIR." )<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&nbsp; 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&nbsp;? <a href="http://www.microsoft.com/windows/windowslive/default.aspx">Lancez-vous !</a></div>

<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">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">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">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br>don't top quote when you replay :)<br>ans if possible quotting all text it's easyest for the another people reading :)<br><br /><hr />Votre correspondant a choisi Hotmail et profite d'un stockage quasiment illimité. <a href='http://www.windowslive.fr/hotmail/default.asp' target='_new'> Créez un compte Hotmail gratuitement !</a></body>
</html>