From d363ac30da9f8d3a745a832b62a84bd932c39be5 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Fri, 19 Aug 2022 10:30:19 -0700 Subject: [PATCH] add boost_assert.natvis and interface target sources for VS --- CMakeLists.txt | 6 ++++++ extra/boost_assert.natvis | 14 ++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 extra/boost_assert.natvis diff --git a/CMakeLists.txt b/CMakeLists.txt index f4ccdd9..835e143 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,6 +16,12 @@ target_link_libraries(boost_assert INTERFACE Boost::config ) +file(GLOB_RECURSE boost_assert_IDEFILES CONFIGURE_DEPENDS include/*.hpp) +source_group(TREE ${PROJECT_SOURCE_DIR}/include FILES ${boost_assert_IDEFILES}) +if (CMAKE_GENERATOR MATCHES "Visual Studio") + list(APPEND boost_assert_IDEFILES extra/boost_assert.natvis) +endif() +target_sources(boost_assert PRIVATE ${boost_assert_IDEFILES}) # BUILD_TESTING is the standard CTest variable that enables testing diff --git a/extra/boost_assert.natvis b/extra/boost_assert.natvis new file mode 100644 index 0000000..56bc7eb --- /dev/null +++ b/extra/boost_assert.natvis @@ -0,0 +1,14 @@ + + + + + {function_,sb} @ {file_,sb}:{line_} + + file_,sb + line_ + column_ + function_,sb + + + +