1
0
forked from boostorg/core

add boost_core.natvis and interface project sources

This commit is contained in:
Vinnie Falco
2022-08-18 15:41:49 -07:00
parent 414dfb4668
commit 6fb57488a2
2 changed files with 15 additions and 0 deletions

View File

@ -20,6 +20,13 @@ target_link_libraries(boost_core
Boost::throw_exception
)
file(GLOB_RECURSE boost_core_IDEFILES CONFIGURE_DEPENDS include/*.hpp)
source_group(TREE ${PROJECT_SOURCE_DIR}/include FILES ${boost_core_IDEFILES})
if (CMAKE_GENERATOR MATCHES "Visual Studio")
list(APPEND boost_core_IDEFILES extra/boost_core.natvis)
endif()
target_sources(boost_core PRIVATE ${boost_core_IDEFILES})
if(BUILD_TESTING AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/test/CMakeLists.txt")
add_subdirectory(test)

8
extra/boost_core.natvis Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<Type Name="boost::core::basic_string_view&lt;*&gt;">
<DisplayString>{p_,[n_]s}</DisplayString>
</Type>
</AutoVisualizer>