Compare commits

..

1 Commits

Author SHA1 Message Date
Peter Dimov
bef8ef7b80 Add CMake test project 2018-09-28 22:48:02 +03:00
7 changed files with 16 additions and 67 deletions

View File

@@ -251,12 +251,12 @@ matrix:
env: TOOLSET=clang COMPILER=clang++ CXXSTD=03,11,14,1z
osx_image: xcode6.4
- os: linux
- os: linux
env: CMAKE_TEST_PROJECT=1
install: true
script:
- mkdir __build__ && cd __build__
- cmake ../test
- cmake ../test/cmake_test_project
- cmake --build .
install:

View File

@@ -1,35 +0,0 @@
Boost Config Library
============================
This library provides configuration support for the Boost C++ libraries.
The full documentation is available on [boost.org](http://www.boost.org/doc/libs/release/libs/config/index.html).
## Support, bugs and feature requests ##
Bugs and feature requests can be reported through the [Gitub issue tracker](https://github.com/boostorg/config/issues)
(see [open issues](https://github.com/boostorg/config/issues) and
[closed issues](https://github.com/boostorg/config/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aclosed)).
You can submit your changes through a [pull request](https://github.com/boostorg/config/pulls).
There is no mailing-list specific to Boost Config, although you can use the general-purpose Boost [mailing-list](http://lists.boost.org/mailman/listinfo.cgi/boost-users) using the tag [config].
## 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 Config Library is located in `libs/config/`.
### Running tests ###
First, make sure you are in `libs/config/test`.
You can either run all the tests listed in `Jamfile.v2` or run a single test:
../../../b2 <- run all tests
../../../b2 config_info <- single test

View File

@@ -29,7 +29,7 @@ Distributed under the Boost Software License, Version 1.0.
[/ Other web resources ]
[def __STL_PORT__ [@http://stlport.sourceforge.net STLport]]
[def __BOOST_TRACKER__ [@https://github.com/boostorg/config/issues Github]]
[def __BOOST_TRACKER__ [@https://svn.boost.org/trac/boost/newticket Trac]]
[def __CORE_LANGUAGE_DR337__ [@http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#337 Core Language DR337]]
[def __PRINCIPLES_AND_PATTERNS_ARTICLE__ [@http://www.objectmentor.com/resources/articles/Principles_and_Patterns.pdf following article]]

View File

@@ -162,7 +162,7 @@
</p>
<p>
Boost library users can request support for additional compilers or platforms
by visiting our <a href="https://github.com/boostorg/config/issues" target="_top">Github</a>
by visiting our <a href="https://svn.boost.org/trac/boost/newticket" target="_top">Trac</a>
and submitting a support request.
</p>
</div>
@@ -993,7 +993,7 @@
</div>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"><p><small>Last revised: October 15, 2018 at 16:56:00 GMT</small></p></td>
<td align="left"><p><small>Last revised: August 16, 2018 at 10:24:31 GMT</small></p></td>
<td align="right"><div class="copyright-footer"></div></td>
</tr></table>
<hr>

View File

@@ -1,27 +0,0 @@
# Copyright 2018 John Maddock
# 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
#
# CAUTION!!!!
#
# This addition to Boost.Config should be considered experimental and is part
# of an ongoing effort to add CMake support Boost-wide.
#
# IT IS HIGHLY LIKELY THAT THIS FILE WILL CHANGE WITHOUT NOTICE!!!
#
# DO NOT REPLY ON THE CONTENTS OF THIS FILE!!!
#
# In particular this is not a comprehensive test suite, just a quick check
# that the root CMakeLists.txt works OK, and a convenience for folks who
# want to import these projects into their IDE.
#
cmake_minimum_required(VERSION 3.5)
add_subdirectory(.. ${CMAKE_CURRENT_BINARY_DIR}/boost_config)
add_executable(config_info config_info.cpp)
target_link_libraries(config_info Boost::config)
add_executable(config_test config_test.cpp)
target_link_libraries(config_test Boost::config)

View File

@@ -0,0 +1,6 @@
cmake_minimum_required(VERSION 3.5)
add_subdirectory(../.. ${CMAKE_CURRENT_BINARY_DIR}/boost_config)
add_executable(boost_config_cmake_test main.cpp)
target_link_libraries(boost_config_cmake_test Boost::config)

View File

@@ -0,0 +1,5 @@
#include <boost/config.hpp>
int main()
{
}