[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-17 11:38:41 +02:00
parent 4bd93cd414
commit 1a82003731

12
CMakeLists.txt Normal file
View File

@@ -0,0 +1,12 @@
cmake_minimum_required(VERSION 3.8)
project(boost-assert LANGUAGES CXX)
add_library(boost_assert INTERFACE)
add_library(Boost::assert ALIAS boost_assert)
target_include_directories(boost_assert INTERFACE include)
target_link_libraries(boost_assert
INTERFACE
Boost::config
)