0
0
mirror of https://github.com/zeux/pugixml.git synced 2024-12-27 13:33:17 +08:00

Added target_include_directories() to properly export include directories (#130)

Fixes #126
This commit is contained in:
Daniel Knibbe 2017-01-17 18:30:01 +01:00 committed by Arseny Kapoulkine
parent 05edb250ee
commit 198900eff4

View File

@ -55,6 +55,10 @@ if(BUILD_PKGCONFIG)
set(INSTALL_SUFFIX /pugixml-${PUGIXML_VERSION_STRING})
endif()
target_include_directories(pugixml PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/src>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}${INSTALL_SUFFIX}>)
install(TARGETS pugixml EXPORT pugixml-config
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}${INSTALL_SUFFIX}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}${INSTALL_SUFFIX}