From 6fb57488a2d25b5ebed6fe25e0c488a778c7bdd1 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Thu, 18 Aug 2022 15:41:49 -0700 Subject: [PATCH] add boost_core.natvis and interface project sources --- CMakeLists.txt | 7 +++++++ extra/boost_core.natvis | 8 ++++++++ 2 files changed, 15 insertions(+) create mode 100644 extra/boost_core.natvis diff --git a/CMakeLists.txt b/CMakeLists.txt index 4a0d81a..04adff8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/extra/boost_core.natvis b/extra/boost_core.natvis new file mode 100644 index 0000000..9fb94cb --- /dev/null +++ b/extra/boost_core.natvis @@ -0,0 +1,8 @@ + + + + + {p_,[n_]s} + + +