r13793 by cbradney - #8290: Install header files with full directory structure

scribus-commit scribus-commit at lists.scribus.net
Mon Jul 27 22:40:17 CEST 2009


Revision: 13793
Author: cbradney
Date: 2009-07-27T20:35:51.524494Z
Commit message: #8290: Install header files with full directory structure

Changeset: 
M  /branches/Version135/Scribus/scribus/CMakeLists.txt

Diffs:
Index: scribus/CMakeLists.txt
===================================================================
--- scribus/CMakeLists.txt	(revision 13792)
+++ scribus/CMakeLists.txt	(revision 13793)
@@ -832,10 +832,21 @@
   ENDIF(WIN32)
 ENDIF(APPLEBUNDLE)
 
-#Install our header files, selected from all existing dirs
+#Install our header files, selected from all existing dirs, excluding unwanted directories and svn files
 IF(NOT WANT_NOHEADERINSTALL)
-  FILE( GLOB_RECURSE SCRIBUS_HEADER_FILES *.h )
-  INSTALL(FILES ${SCRIBUS_HEADER_FILES} DESTINATION ${INCLUDEDIR})
+  MESSAGE(STATUS "Source header files will be installed")
+  INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ DESTINATION ${INCLUDEDIR} 
+    FILES_MATCHING 
+    PATTERN "*.h"
+    PATTERN "dicts" EXCLUDE
+    PATTERN "doc" EXCLUDE
+    PATTERN "dtd" EXCLUDE
+    PATTERN "editorconfig" EXCLUDE
+    PATTERN "icon*" EXCLUDE
+    PATTERN "manpages" EXCLUDE
+    PATTERN "old" EXCLUDE
+    PATTERN ".svn" EXCLUDE 
+  )
 ELSE(NOT WANT_NOHEADERINSTALL)
   MESSAGE(STATUS "No source header files will be installed")
 ENDIF(NOT WANT_NOHEADERINSTALL)




More information about the scribus-commit mailing list