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} + + +