Skip to content
Snippets Groups Projects
Commit 78f8662d authored by arseny.kapoulkine@gmail.com's avatar arseny.kapoulkine@gmail.com
Browse files

scripts: Updated CMakeLists.txt to match the Gentoo distribution version more...

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
parent 593e90e2
No related branches found
No related tags found
No related merge requests found
......@@ -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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment