0
0
mirror of https://github.com/zeux/pugixml.git synced 2024-12-28 14:48:43 +08:00

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
This commit is contained in:
arseny.kapoulkine@gmail.com 2012-04-09 06:08:12 +00:00
parent 593e90e22c
commit 78f8662d33

View File

@ -3,7 +3,8 @@ project(pugixml)
cmake_minimum_required(VERSION 2.6) cmake_minimum_required(VERSION 2.6)
set(BUILD_SHARED_LIBS OFF CACHE BOOL "Build shared instead of static library") 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) if(BUILD_SHARED_LIBS)
add_library(pugixml SHARED ${SOURCES}) add_library(pugixml SHARED ${SOURCES})
@ -14,4 +15,4 @@ endif()
set_target_properties(pugixml PROPERTIES VERSION 1.2 SOVERSION 1.2) set_target_properties(pugixml PROPERTIES VERSION 1.2 SOVERSION 1.2)
install(TARGETS pugixml LIBRARY DESTINATION lib ARCHIVE DESTINATION lib) install(TARGETS pugixml LIBRARY DESTINATION lib ARCHIVE DESTINATION lib)
install(DIRECTORY ../src/ DESTINATION include/pugixml FILES_MATCHING PATTERN *.hpp) install(FILES ${HEADERS} DESTINATION include)