File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,6 +23,15 @@ include(CommonCppFlags)
2323file (GLOB EASTL_SOURCES "source/*.cpp" )
2424add_library (EASTL ${EASTL_SOURCES} )
2525
26+ if (MSVC )
27+ set (EASTL_NATVIS_DIR "doc" )
28+ set (EASTL_NATVIS_FILE "${EASTL_NATVIS_DIR} /EASTL.natvis" )
29+ target_sources (EASTL INTERFACE
30+ $<INSTALL_INTERFACE :${EASTL_NATVIS_FILE} >
31+ $<BUILD_INTERFACE :${CMAKE_CURRENT_SOURCE_DIR} /${EASTL_NATVIS_FILE} >
32+ )
33+ endif ()
34+
2635if (EASTL_BUILD_BENCHMARK)
2736 add_subdirectory (benchmark )
2837endif ()
@@ -61,3 +70,7 @@ target_link_libraries(EASTL EABase)
6170#-------------------------------------------------------------------------------------------
6271install (TARGETS EASTL DESTINATION lib)
6372install (DIRECTORY include/EASTL DESTINATION include)
73+
74+ if (MSVC )
75+ install (FILES ${EASTL_NATVIS_FILE} DESTINATION ${EASTL_NATVIS_DIR} )
76+ endif ()
You can’t perform that action at this time.
0 commit comments