From 68e42135834b781ba2cd7b9107086cda1d0faf66 Mon Sep 17 00:00:00 2001 From: Mike Dev Date: Tue, 18 Sep 2018 13:19:19 +0200 Subject: [PATCH 1/2] [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 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..33877bc --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,16 @@ +# Copyright 2018 Mike Dev +# Distributed under the Boost Software License, Version 1.0. +# See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt + +cmake_minimum_required(VERSION 3.5) +project(BoostStaticAssert LANGUAGES CXX) + +add_library(boost_static_assert INTERFACE) +add_library(Boost::static_assert ALIAS boost_static_assert) + +target_include_directories(boost_static_assert INTERFACE include) + +target_link_libraries(boost_static_assert + INTERFACE + Boost::config +) From 488af9cf1b1a23aaaafa63eea6f49cc24b8d5c2d Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Mon, 15 Oct 2018 18:12:54 +0100 Subject: [PATCH 2/2] add README.md [CI SKIP] --- README.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..c290010 --- /dev/null +++ b/README.md @@ -0,0 +1,36 @@ +Boost StaticAssert Library +============================ + +The Boost StaticAssert library provides static assertions for C++, this library is the ancestor to C++ native static_assert's and +can be used on older compilers which don't have that feature. + +The full documentation is available on [boost.org](http://www.boost.org/doc/libs/release/libs/static_assert). + +## Support, bugs and feature requests ## + +Bugs and feature requests can be reported through the [Gitub issue tracker](https://github.com/boostorg/static_assert/issues) +(see [open issues](https://github.com/boostorg/static_assert/issues) and +[closed issues](https://github.com/boostorg/static_assert/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aclosed)). + +You can submit your changes through a [pull request](https://github.com/boostorg/static_assert/pulls). + +There is no mailing-list specific to Boost StaticAssert, although you can use the general-purpose Boost [mailing-list](http://lists.boost.org/mailman/listinfo.cgi/boost-users) using the tag [static_assert]. + + +## Development ## + +Clone the whole boost project, which includes the individual Boost projects as submodules ([see boost+git doc](https://github.com/boostorg/boost/wiki/Getting-Started)): + + git clone https://github.com/boostorg/boost + cd boost + git submodule update --init + +The Boost StaticAssert Library is located in `libs/static_assert/`. + +### Running tests ### +First, make sure you are in `libs/static_assert/test`. +You can either run all the tests listed in `Jamfile.v2` or run a single test: + + ../../../b2 <- run all tests + ../../../b2 static_assert_test <- single test +