forked from boostorg/static_string
committed by
Alan de Freitas
parent
42bb99ed25
commit
bff5cb65a5
@ -23,7 +23,7 @@ endif ()
|
|||||||
# Options
|
# Options
|
||||||
if (NOT BOOST_SUPERPROJECT_VERSION)
|
if (NOT BOOST_SUPERPROJECT_VERSION)
|
||||||
option(BOOST_STATIC_STRING_INSTALL "Install boost::static_string files" ${BOOST_STATIC_STRING_IS_ROOT})
|
option(BOOST_STATIC_STRING_INSTALL "Install boost::static_string files" ${BOOST_STATIC_STRING_IS_ROOT})
|
||||||
option(BOOST_STATIC_STRING_BUILD_TESTS "Build boost::static_string tests" ${BUILD_TESTING})
|
option(BOOST_STATIC_STRING_BUILD_TESTS "Build boost::static_string tests" OFF)
|
||||||
else ()
|
else ()
|
||||||
set(BOOST_STATIC_STRING_BUILD_TESTS ${BUILD_TESTING})
|
set(BOOST_STATIC_STRING_BUILD_TESTS ${BUILD_TESTING})
|
||||||
endif ()
|
endif ()
|
||||||
@ -112,7 +112,7 @@ if (BOOST_STATIC_STRING_INSTALL AND NOT BOOST_SUPERPROJECT_VERSION)
|
|||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
|
||||||
if (BOOST_STATIC_STRING_BUILD_TESTS)
|
if (BUILD_TESTING OR BOOST_STATIC_STRING_BUILD_TESTS)
|
||||||
add_subdirectory(test)
|
add_subdirectory(test)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
"String"
|
"String"
|
||||||
],
|
],
|
||||||
"maintainers": [
|
"maintainers": [
|
||||||
|
"Krystian Stasiowski <sdkrystian@gmail.com>",
|
||||||
"Alan de Freitas <alandefreitas@gmail.com>",
|
"Alan de Freitas <alandefreitas@gmail.com>",
|
||||||
"Vinnie Falco <vinnie.falco@gmail.com>"
|
"Vinnie Falco <vinnie.falco@gmail.com>"
|
||||||
],
|
],
|
||||||
|
@ -7,6 +7,12 @@
|
|||||||
# Official repository: https://github.com/boostorg/static_string
|
# Official repository: https://github.com/boostorg/static_string
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# Custom target used by the boost super-project
|
||||||
|
if(NOT TARGET tests)
|
||||||
|
add_custom_target(tests)
|
||||||
|
set_property(TARGET tests PROPERTY FOLDER _deps)
|
||||||
|
endif()
|
||||||
|
|
||||||
set(BOOST_STATIC_STRING_TESTS_FILES
|
set(BOOST_STATIC_STRING_TESTS_FILES
|
||||||
CMakeLists.txt
|
CMakeLists.txt
|
||||||
Jamfile
|
Jamfile
|
||||||
@ -23,3 +29,4 @@ add_executable(boost_static_string_tests ${BOOST_STATIC_STRING_TESTS_FILES})
|
|||||||
# See: BOOST_STATIC_STRING_UNIT_TEST_LIBRARIES
|
# See: BOOST_STATIC_STRING_UNIT_TEST_LIBRARIES
|
||||||
target_link_libraries(boost_static_string_tests PRIVATE Boost::static_string)
|
target_link_libraries(boost_static_string_tests PRIVATE Boost::static_string)
|
||||||
add_test(NAME boost_static_string_tests COMMAND boost_static_string_tests)
|
add_test(NAME boost_static_string_tests COMMAND boost_static_string_tests)
|
||||||
|
add_dependencies(tests boost_static_string_tests)
|
||||||
|
Reference in New Issue
Block a user