diff options
author | arseny.kapoulkine@gmail.com <arseny.kapoulkine@gmail.com@99668b35-9821-0410-8761-19e4c4f06640> | 2012-04-09 06:08:12 +0000 |
---|---|---|
committer | arseny.kapoulkine@gmail.com <arseny.kapoulkine@gmail.com@99668b35-9821-0410-8761-19e4c4f06640> | 2012-04-09 06:08:12 +0000 |
commit | 78f8662d3310b12e1bc6a8c07dc1ce4223d38eae (patch) | |
tree | e678607d42a378578d30eee99c3f09374e665520 /scripts/CMakeLists.txt | |
parent | 593e90e22c348e0f71f806a0572e87bdd0c1cb33 (diff) |
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
Diffstat (limited to 'scripts/CMakeLists.txt')
-rw-r--r-- | scripts/CMakeLists.txt | 5 |
1 files 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) |