forked from boostorg/preprocessor
[CMake/CI] Some cleanup
This commit is contained in:
@ -1,4 +1,5 @@
|
|||||||
# Copyright 2017 Edward Diener
|
# Copyright 2017 Edward Diener
|
||||||
|
# Copyright 2018 Mike Dev
|
||||||
# Distributed under the Boost Software License, Version 1.0.
|
# Distributed under the Boost Software License, Version 1.0.
|
||||||
# (See accompanying file LICENSE_1_0.txt or copy at http://boost.org/LICENSE_1_0.txt)
|
# (See accompanying file LICENSE_1_0.txt or copy at http://boost.org/LICENSE_1_0.txt)
|
||||||
|
|
||||||
@ -30,7 +31,6 @@ for:
|
|||||||
only:
|
only:
|
||||||
- configuration: cmake_self_test
|
- configuration: cmake_self_test
|
||||||
|
|
||||||
build: off
|
|
||||||
test_script:
|
test_script:
|
||||||
- mkdir __build__
|
- mkdir __build__
|
||||||
- cd __build__
|
- cd __build__
|
||||||
@ -41,6 +41,7 @@ for:
|
|||||||
matrix:
|
matrix:
|
||||||
only:
|
only:
|
||||||
- configuration: boost_test
|
- configuration: boost_test
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- cd ..
|
- cd ..
|
||||||
- git clone -b %APPVEYOR_REPO_BRANCH% https://github.com/boostorg/boost.git boost-root
|
- git clone -b %APPVEYOR_REPO_BRANCH% https://github.com/boostorg/boost.git boost-root
|
||||||
@ -53,13 +54,7 @@ for:
|
|||||||
- bootstrap
|
- bootstrap
|
||||||
- b2 headers
|
- b2 headers
|
||||||
|
|
||||||
build: off
|
|
||||||
|
|
||||||
test_script:
|
test_script:
|
||||||
- b2 libs/preprocessor/test toolset=%TOOLSET%
|
- b2 libs/preprocessor/test toolset=%TOOLSET%
|
||||||
- cd ../preprocessor/test
|
- cd ../preprocessor/test
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -2,17 +2,15 @@
|
|||||||
# Distributed under the Boost Software License, Version 1.0.
|
# 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
|
# See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt
|
||||||
#
|
#
|
||||||
# NOTE: This does not run the UNIT-TESTS for Boost.PReprocessor.
|
# NOTE: This does NOT run the unit tests for Boost.Preprocessor (yet).
|
||||||
# It only tests, if the CMakeLists.txt file works as expected
|
# It only tests, if the CMakeLists.txt file works as expected
|
||||||
|
|
||||||
cmake_minimum_required( VERSION 3.5 )
|
cmake_minimum_required( VERSION 3.5 )
|
||||||
|
|
||||||
project( TestBoostPreprocessorCMakeSelfTest )
|
project( BoostPreprocessorCMakeSelfTest )
|
||||||
|
|
||||||
add_subdirectory( .. ${CMAKE_CURRENT_BINARY_DIR}/boost_preprocessor )
|
add_subdirectory( .. ${CMAKE_CURRENT_BINARY_DIR}/boost_preprocessor )
|
||||||
|
|
||||||
# arithmetic.cpp is a randomly chosen source file
|
add_executable( boost_preprocessor_cmake_self_test cmake_self_test.cpp )
|
||||||
# that is compilable on it's own.
|
target_link_libraries( boost_preprocessor_cmake_self_test Boost::preprocessor )
|
||||||
add_executable( boost_preprocessor_self_test cmake_self_test.cpp )
|
|
||||||
target_link_libraries( boost_preprocessor_self_test Boost::preprocessor )
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user