[CMake] Generate cmake target that other libraries can use

... to express their dependency on this library and retrieve any
configuration information such as the include directory, binary
to link to (if any), transitive dependencies, necessary compiler
options or the required c++ standards level.
This commit is contained in:
Mike Dev
2018-09-18 13:19:18 +02:00
committed by James E. King III
parent ac67f5952e
commit c7df450a81

19
CMakeLists.txt Normal file
View File

@ -0,0 +1,19 @@
cmake_minimum_required(VERSION 3.5)
project(boost-mpl)
add_library(boost_mpl INTERFACE)
add_library(Boost::mpl ALIAS boost_mpl)
target_include_directories(boost_mpl INTERFACE include)
target_link_libraries(boost_mpl
INTERFACE
Boost::config
Boost::core
Boost::predef
Boost::preprocessor
Boost::static_assert
Boost::type_traits
Boost::utility
)