boostorg / container

STL-like containers from Boost
http://www.boost.org/libs/container/
Boost Software License 1.0
100 stars 116 forks source link

[CMake] Add minimal cmake support #106

Closed Mike-Devel closed 5 years ago

Mike-Devel commented 5 years ago

This cmake file just provides the minimal infrastructure necessary, such that other libraries can get a sensible result from calling

add_subdirectory( <path-to-boost_container> )
target_link_libraries( <my_target> PUBLIC Boost::container )

provided that all direct and indirect dependencies are also being added via add_subdirectory (which can e.g happen via globbing expression).

More information:

* https://groups.google.com/forum/#!topic/boost-developers-archive/9ZdrVbAn1aU

Of course the file can be extended to e.g. build and run tests and support installation, but that is out of scope for this particular PR.

Please note that this is largely orthogonal to the recent addition to b2/boost by peter dimov, which is concerned with providing cmake config files for "classic" boost installations via b2.

igaztanaga commented 5 years ago

Many thanks for the patch.