[CMake] Re: Boost with CMake?

Eddy Pronk epronk at muftor.com
Fri Oct 7 18:13:24 EDT 2005


>I'd like to use the Boost C++ libraries (www.boost.org) in my 
>CMake-based projects.

>What's the best way to do this?

>Preferably, I'd like to have a kind of "FindBoost.cmake" module which 
>provides the include and library paths.

I created one. You can find it here:
http://cvs.sourceforge.net/viewcvs.py/nmdepend/nmdepend/cmake/

Here's how to use it:

FIND_PACKAGE(Boost)
BOOST_USE(filesystem)
BOOST_USE(program_options)

TARGET_LINK_LIBRARIES(foo ${Boost_filesystem_LIBRARY} ${Boost_program_options_LIBRARY})


Eddy



More information about the CMake mailing list