From 78f8662d3310b12e1bc6a8c07dc1ce4223d38eae Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine@gmail.com" Date: Mon, 9 Apr 2012 06:08:12 +0000 Subject: [PATCH] scripts: Updated CMakeLists.txt to match the Gentoo distribution version more closely (install header files into include/ - this is how Fedora's distribution is set up too) git-svn-id: http://pugixml.googlecode.com/svn/trunk@900 99668b35-9821-0410-8761-19e4c4f06640 --- scripts/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt index 454a9ea..c175967 100644 --- a/scripts/CMakeLists.txt +++ b/scripts/CMakeLists.txt @@ -3,7 +3,8 @@ project(pugixml) cmake_minimum_required(VERSION 2.6) set(BUILD_SHARED_LIBS OFF CACHE BOOL "Build shared instead of static library") -set(SOURCES ../src/pugixml.hpp ../src/pugiconfig.hpp ../src/pugixml.cpp) +set(HEADERS ../src/pugixml.hpp ../src/pugiconfig.hpp) +set(SOURCES ${HEADERS} ../src/pugixml.cpp) if(BUILD_SHARED_LIBS) add_library(pugixml SHARED ${SOURCES}) @@ -14,4 +15,4 @@ endif() set_target_properties(pugixml PROPERTIES VERSION 1.2 SOVERSION 1.2) install(TARGETS pugixml LIBRARY DESTINATION lib ARCHIVE DESTINATION lib) -install(DIRECTORY ../src/ DESTINATION include/pugixml FILES_MATCHING PATTERN *.hpp) +install(FILES ${HEADERS} DESTINATION include)