From 1a820037310997d59a8fd1c2d1ee8feafec0218a Mon Sep 17 00:00:00 2001 From: Mike Dev Date: Mon, 17 Sep 2018 11:38:41 +0200 Subject: [PATCH] [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. --- CMakeLists.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..cbfa72e --- /dev/null +++ b/CMakeLists.txt @@ -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 +)