mirror of
https://github.com/boostorg/mpl.git
synced 2025-07-31 13:27:32 +02:00
[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:
committed by
James E. King III
parent
ac67f5952e
commit
c7df450a81
19
CMakeLists.txt
Normal file
19
CMakeLists.txt
Normal 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
|
||||
)
|
||||
|
Reference in New Issue
Block a user