moved natis to root dir
This commit is contained in:
parent
af775ddbb8
commit
8e9a8792a9
2 changed files with 12 additions and 6 deletions
|
@ -36,15 +36,15 @@ target_include_directories(
|
||||||
INTERFACE $<INSTALL_INTERFACE:include/>
|
INTERFACE $<INSTALL_INTERFACE:include/>
|
||||||
)
|
)
|
||||||
|
|
||||||
##
|
## add debug view defintion file for msvc (natvis) [cmake <= 3.2.2 does not support export of source files]
|
||||||
## add debug view defintion file for msvc
|
|
||||||
##
|
|
||||||
if (MSVC AND CMAKE_VERSION VERSION_GREATER "3.2.2")
|
if (MSVC AND CMAKE_VERSION VERSION_GREATER "3.2.2")
|
||||||
|
set(NLOHMANN_ADD_NATVIS TRUE)
|
||||||
|
set(NLOHMANN_NATVIS_FILE "nlohmann_json.natvis")
|
||||||
target_sources(
|
target_sources(
|
||||||
${NLOHMANN_JSON_TARGET_NAME}
|
${NLOHMANN_JSON_TARGET_NAME}
|
||||||
INTERFACE
|
INTERFACE
|
||||||
$<INSTALL_INTERFACE:include/json.natvis>
|
$<INSTALL_INTERFACE:${NLOHMANN_NATVIS_FILE}>
|
||||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/${NLOHMANN_JSON_SOURCE_DIR}/json.natvis>
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/${NLOHMANN_NATVIS_FILE}>
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -79,6 +79,12 @@ install(
|
||||||
FILES ${NLOHMANN_JSON_CMAKE_PROJECT_CONFIG_FILE} ${NLOHMANN_JSON_CMAKE_VERSION_CONFIG_FILE}
|
FILES ${NLOHMANN_JSON_CMAKE_PROJECT_CONFIG_FILE} ${NLOHMANN_JSON_CMAKE_VERSION_CONFIG_FILE}
|
||||||
DESTINATION ${NLOHMANN_JSON_CONFIG_INSTALL_DIR}
|
DESTINATION ${NLOHMANN_JSON_CONFIG_INSTALL_DIR}
|
||||||
)
|
)
|
||||||
|
if (NLOHMANN_ADD_NATVIS)
|
||||||
|
install(
|
||||||
|
FILES ${NLOHMANN_NATVIS_FILE}
|
||||||
|
DESTINATION .
|
||||||
|
)
|
||||||
|
endif()
|
||||||
install(
|
install(
|
||||||
TARGETS ${NLOHMANN_JSON_TARGET_NAME}
|
TARGETS ${NLOHMANN_JSON_TARGET_NAME}
|
||||||
EXPORT ${NLOHMANN_JSON_TARGETS_EXPORT_NAME}
|
EXPORT ${NLOHMANN_JSON_TARGETS_EXPORT_NAME}
|
||||||
|
|
Loading…
Reference in a new issue