From 198900eff403982f080958459f1ccb45cdefe9a4 Mon Sep 17 00:00:00 2001 From: Daniel Knibbe Date: Tue, 17 Jan 2017 18:30:01 +0100 Subject: [PATCH] Added target_include_directories() to properly export include directories (#130) Fixes #126 --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index da2feaa..8a1169b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -55,6 +55,10 @@ if(BUILD_PKGCONFIG) set(INSTALL_SUFFIX /pugixml-${PUGIXML_VERSION_STRING}) endif() +target_include_directories(pugixml PUBLIC + $ + $) + install(TARGETS pugixml EXPORT pugixml-config ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}${INSTALL_SUFFIX} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}${INSTALL_SUFFIX}