[prev in list] [next in list] [prev in thread] [next in thread]
List: python-cpp-sig
Subject: Re: [C++-sig] CMake and getting starting with boost.python
From: Tyler Weston <tyler.weston () gmail ! com>
Date: 2011-08-05 23:10:26
Message-ID: CAEAuKixFjq+0rmtiQ6u5Exd_E5V5SqJBDeagkcupD2-7tuDaUQ () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
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.
#
# BOOST
#
set(Boost_USE_STATIC_LIBS OFF)
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME OFF)
set(BOOST_ROOT "path/to/boost")
# uncomment to debug find_package(Boost):
# set(Boost_DEBUG TRUE)
find_package(Boost 1.46.1 COMPONENTS system filesystem regex date_time
thread serialization python )
On Fri, Aug 5, 2011 at 2:53 PM, fjanoos <fjanoos@yahoo.com> wrote:
> Dear Braddock,
>
> I'm trying to build Python wrappers with Boost for a fairly large C++
> project - and most of its configuration is in CMake. Do you have any more
> information on using Boost Python through cmake.
>
> Specifically - i'm interested in configuring cmake to auto-detect (or
> atleast require) the boost installation and necessary libraries.
>
> thanks,
> -fj
>
> --
> View this message in context:
> http://boost.2283326.n4.nabble.com/C-sig-CMake-and-getting-starting-with-boost-python-tp2700144p3722133.html
> Sent from the Python - c++-sig mailing list archive at Nabble.com.
> _______________________________________________
> Cplusplus-sig mailing list
> Cplusplus-sig@python.org
> http://mail.python.org/mailman/listinfo/cplusplus-sig
>
[Attachment #5 (text/html)]
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>
_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic