Add CMake test project

This commit is contained in:
Peter Dimov
2018-09-28 22:48:02 +03:00
parent 1d39fdec80
commit bef8ef7b80
3 changed files with 19 additions and 0 deletions

View File

@@ -251,6 +251,14 @@ matrix:
env: TOOLSET=clang COMPILER=clang++ CXXSTD=03,11,14,1z
osx_image: xcode6.4
- os: linux
env: CMAKE_TEST_PROJECT=1
install: true
script:
- mkdir __build__ && cd __build__
- cmake ../test/cmake_test_project
- cmake --build .
install:
- BOOST_BRANCH=develop && [ "$TRAVIS_BRANCH" == "master" ] && BOOST_BRANCH=master || true
- cd ..

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()
{
}