I use CMake&#39;s FindBoost.cmake module to find the boost libraries on the system. �You can get a detailed description of all of the relavent variables you can set using the following command:<div><br></div><div>$ cmake --help-module FindBoost</div>
<div><br></div><div>Variables that you&#39;ll want to consider setting:</div><div>Boost_ADDITIONAL_VERSIONS - to whatever version of boost you have installed.</div><div>Boost_USE_STATIC_LIBS - if you built boost statically (it defaults to dynamic libraries)</div>
<div>BOOST_DIR - the path to wherever you put your built boost library, if it isn&#39;t some place the compiler will find itself (LIB and LIBDIR variables using MSVC)</div><div><br></div><div>You can also set Boost_DEBUG and Boost_DETAILED_FAILURE_MSG variables to see how cmake is failing to find boost.</div>
<div><br></div><div><b>For finding Rabbitmq-c</b>�I wrote a FindRabbitmqc.cmake (in the Modules directory).</div><div><br></div><div>It searches for the amqp.h file in:</div><div>${Rabbitmqc_DIR}/include</div><div>Then your system paths</div>
<div><br></div><div>If it doesn&#39;t pick it up automatically you set Rabbitmqc_INCLUDE_DIR to the directory containing the amqp.h file by hand.</div><div><br></div><div>It searches for the rabbitmq library (librabbitmq.a/librabbitmq.so on *nix rabbitmq.lib/.dll on windows) in:</div>
<div>${Rabbitmq_DIR}/lib</div><div>Then your system include paths</div><div><br></div><div>If it doesn&#39;t pick it up automatically, you can set Rabbitmqc_LIBRARY to the filename of the library by hand.</div><div><br></div>
<div>Hope that helps.</div><div><br></div><div>-Alan</div><div><br><div class="gmail_quote">On Thu, Mar 1, 2012 at 1:31 PM, Eric J. Holtman <span dir="ltr">&lt;<a href="mailto:eric@holtmans.com">eric@holtmans.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 3/1/2012 10:59 AM, Eric J. Holtman wrote:<br>
<br>
&gt;<br>
&gt; I cannot get this to build. � I&#39;m trying to run it under<br>
&gt; windows.<br>
&gt;<br>
&gt; cmake fails with:<br>
&gt;<br>
<br>
<br>
</div>OK, fixed that (not finding right boost) by clearing<br>
out the build directory and re-running cmake.<br>
<br>
Now I can&#39;t figure out the right incantation for<br>
finding the rabbitqmc libraries.<br>
<br>
What am I supposed to set Rabbitmqc_INCLUDE_DIR and<br>
Rabbitmqc_LIBRARY to?<br>
<br>
I&#39;ve tried all sorts of different things, I can&#39;t get<br>
cmake to find my compiled/installed version.<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</div></div></blockquote></div><br></div>