forked from boostorg/assert
[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:
12
CMakeLists.txt
Normal file
12
CMakeLists.txt
Normal 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
|
||||||
|
)
|
Reference in New Issue
Block a user