forked from boostorg/preprocessor
Compare commits
1 Commits
develop
...
boost-1.80
Author | SHA1 | Date | |
---|---|---|---|
d4e82d7d3f |
@ -302,9 +302,8 @@ matrix:
|
|||||||
env: CMAKE_TEST=1
|
env: CMAKE_TEST=1
|
||||||
script:
|
script:
|
||||||
- mkdir __build__ && cd __build__
|
- mkdir __build__ && cd __build__
|
||||||
- cmake -DBUILD_TESTING=ON -DBOOST_INCLUDE_LIBRARIES=preprocessor ..
|
- cmake -DBOOST_ENABLE_CMAKE=1 -DBoost_VERBOSE=1 -DBOOST_INCLUDE_LIBRARIES=preprocessor ..
|
||||||
- cmake --build . --target tests
|
- ctest --output-on-failure -R boost_preprocessor
|
||||||
- ctest --output-on-failure
|
|
||||||
|
|
||||||
- os: linux
|
- os: linux
|
||||||
env: CMAKE_SUBDIR_TEST=1
|
env: CMAKE_SUBDIR_TEST=1
|
||||||
@ -318,9 +317,8 @@ matrix:
|
|||||||
- os: linux
|
- os: linux
|
||||||
env: CMAKE_INSTALL_TEST=1
|
env: CMAKE_INSTALL_TEST=1
|
||||||
script:
|
script:
|
||||||
- pip install --user cmake
|
|
||||||
- mkdir __build__ && cd __build__
|
- mkdir __build__ && cd __build__
|
||||||
- cmake -DBOOST_INCLUDE_LIBRARIES=preprocessor -DCMAKE_INSTALL_PREFIX=~/.local ..
|
- cmake -DBOOST_ENABLE_CMAKE=1 -DBoost_VERBOSE=1 -DBOOST_INCLUDE_LIBRARIES=preprocessor -DCMAKE_INSTALL_PREFIX=~/.local ..
|
||||||
- cmake --build . --target install
|
- cmake --build . --target install
|
||||||
- cd ../libs/preprocessor/test/cmake_install_test && mkdir __build__ && cd __build__
|
- cd ../libs/preprocessor/test/cmake_install_test && mkdir __build__ && cd __build__
|
||||||
- cmake -DCMAKE_INSTALL_PREFIX=~/.local ..
|
- cmake -DCMAKE_INSTALL_PREFIX=~/.local ..
|
||||||
|
@ -11,6 +11,13 @@ add_library(Boost::preprocessor ALIAS boost_preprocessor)
|
|||||||
|
|
||||||
target_include_directories(boost_preprocessor INTERFACE include)
|
target_include_directories(boost_preprocessor INTERFACE include)
|
||||||
|
|
||||||
|
if(BOOST_SUPERPROJECT_VERSION)
|
||||||
|
|
||||||
|
include(BoostInstall)
|
||||||
|
boost_install(TARGETS boost_preprocessor HEADER_DIRECTORY include/)
|
||||||
|
|
||||||
|
endif()
|
||||||
|
|
||||||
if(BUILD_TESTING)
|
if(BUILD_TESTING)
|
||||||
|
|
||||||
add_subdirectory(test)
|
add_subdirectory(test)
|
||||||
|
Reference in New Issue
Block a user