Try this. I believe the required FindBoost.cmake is standard in the cmake/shared/cmake-x.y/modules. Not all of these options may apply to your build. <br><br>#<br># BOOST<br>#<br>set(Boost_USE_STATIC_LIBS OFF)<br>set(Boost_USE_MULTITHREADED ON)<br>
set(Boost_USE_STATIC_RUNTIME OFF)<br>set(BOOST_ROOT "path/to/boost")<br># uncomment to debug find_package(Boost): <br># set(Boost_DEBUG TRUE)<br>find_package(Boost 1.46.1 COMPONENTS system filesystem regex date_time thread serialization python )<br>
<br><br><br><div class="gmail_quote">On Fri, Aug 5, 2011 at 2:53 PM, fjanoos <span dir="ltr"><<a href="mailto:fjanoos@yahoo.com">fjanoos@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Dear Braddock,<br>
<br>
I'm trying to build Python wrappers with Boost for a fairly large C++<br>
project - and most of its configuration is in CMake. Do you have any more<br>
information on using Boost Python through cmake.<br>
<br>
Specifically - i'm interested in configuring cmake to auto-detect (or<br>
atleast require) the boost installation and necessary libraries.<br>
<br>
thanks,<br>
-fj<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://boost.2283326.n4.nabble.com/C-sig-CMake-and-getting-starting-with-boost-python-tp2700144p3722133.html" target="_blank">http://boost.2283326.n4.nabble.com/C-sig-CMake-and-getting-starting-with-boost-python-tp2700144p3722133.html</a><br>
Sent from the Python - c++-sig mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Cplusplus-sig mailing list<br>
<a href="mailto:Cplusplus-sig@python.org">Cplusplus-sig@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/cplusplus-sig" target="_blank">http://mail.python.org/mailman/listinfo/cplusplus-sig</a><br>
</font></blockquote></div><br>