Boost super-project tests target

fix #53
This commit is contained in:
alandefreitas
2023-12-22 17:12:34 -03:00
committed by Alan de Freitas
parent 42bb99ed25
commit bff5cb65a5
3 changed files with 10 additions and 2 deletions
+7
View File
@@ -7,6 +7,12 @@
# 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
CMakeLists.txt
Jamfile
@@ -23,3 +29,4 @@ add_executable(boost_static_string_tests ${BOOST_STATIC_STRING_TESTS_FILES})
# See: BOOST_STATIC_STRING_UNIT_TEST_LIBRARIES
target_link_libraries(boost_static_string_tests PRIVATE Boost::static_string)
add_test(NAME boost_static_string_tests COMMAND boost_static_string_tests)
add_dependencies(tests boost_static_string_tests)