summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/CMakeLists.txt5
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)