boostorg / function_types

Boost.org function_types module
http://boost.org/libs/function_types
7 stars 38 forks source link

[CMake] Add minimal cmake support #8

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_function_types> )
target_link_libraries( <my_lib> PUBLIC Boost::function_types )

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

More information:

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.

Mike-Devel commented 5 years ago

Should I add tests for this? I lost traock of which library maintainer wanted them and who didn't.

Mike-Devel commented 5 years ago

Thanks