forked from boostorg/config
Add CMake test project
This commit is contained in:
@@ -251,6 +251,14 @@ matrix:
|
|||||||
env: TOOLSET=clang COMPILER=clang++ CXXSTD=03,11,14,1z
|
env: TOOLSET=clang COMPILER=clang++ CXXSTD=03,11,14,1z
|
||||||
osx_image: xcode6.4
|
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:
|
install:
|
||||||
- BOOST_BRANCH=develop && [ "$TRAVIS_BRANCH" == "master" ] && BOOST_BRANCH=master || true
|
- BOOST_BRANCH=develop && [ "$TRAVIS_BRANCH" == "master" ] && BOOST_BRANCH=master || true
|
||||||
- cd ..
|
- cd ..
|
||||||
|
6
test/cmake_test_project/CMakeLists.txt
Normal file
6
test/cmake_test_project/CMakeLists.txt
Normal 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)
|
5
test/cmake_test_project/main.cpp
Normal file
5
test/cmake_test_project/main.cpp
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#include <boost/config.hpp>
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
}
|
Reference in New Issue
Block a user