Files
static_string/test/CMakeLists.txt

33 lines
1.1 KiB
CMake
Raw Permalink Normal View History

2019-09-09 13:56:14 -07:00
#
2022-10-31 21:35:37 -03:00
# Copyright (c) 2022 Alan de Freitas (alandefreitas@gmail.com)
2019-09-09 13:56:14 -07:00
#
# 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)
#
# Official repository: https://github.com/boostorg/static_string
2019-09-09 13:56:14 -07:00
#
# Custom target used by the boost super-project
if(NOT TARGET tests)
add_custom_target(tests)
set_property(TARGET tests PROPERTY FOLDER _deps)
endif()
2022-10-31 21:35:37 -03:00
set(BOOST_STATIC_STRING_TESTS_FILES
CMakeLists.txt
Jamfile
constexpr_tests.hpp
compile_fail.hpp
static_string.cpp
)
2019-09-09 13:56:14 -07:00
2022-10-31 21:35:37 -03:00
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${BOOST_STATIC_STRING_TESTS_FILES})
add_executable(boost_static_string_tests ${BOOST_STATIC_STRING_TESTS_FILES})
2019-09-09 13:56:14 -07:00
2022-10-31 21:35:37 -03:00
# The include dependencies are found in the CMakeLists.txt
# of the root project directory.
# See: BOOST_STATIC_STRING_UNIT_TEST_LIBRARIES
2022-11-02 19:48:12 -03:00
target_link_libraries(boost_static_string_tests PRIVATE Boost::static_string)
2022-10-31 21:35:37 -03:00
add_test(NAME boost_static_string_tests COMMAND boost_static_string_tests)
add_dependencies(tests boost_static_string_tests)