add .natvis for MSVC debug view

This commit is contained in:
Matthias Möller 2017-11-26 10:31:33 +01:00
parent 5b4855dea2
commit 48d7a32daa
2 changed files with 40 additions and 1 deletions

View file

@ -35,7 +35,14 @@ target_include_directories(
${NLOHMANN_JSON_TARGET_NAME}
INTERFACE $<INSTALL_INTERFACE:include/>
)
target_sources(
${NLOHMANN_JSON_TARGET_NAME}
INTERFACE
$<INSTALL_INTERFACE:include/json.natvis>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/${NLOHMANN_JSON_SOURCE_DIR}/json.natvis>
)
##
## TESTS
## create and configure the unit test target