r13794 by cbradney - #8290: Install header files with full directory structure
scribus-commit
scribus-commit at lists.scribus.net
Mon Jul 27 22:40:29 CEST 2009
Revision: 13794
Author: cbradney
Date: 2009-07-27T20:37:04.174786Z
Commit message: #8290: Install header files with full directory structure
Changeset:
M /trunk/Scribus/scribus/CMakeLists.txt
Diffs:
Index: scribus/CMakeLists.txt
===================================================================
--- scribus/CMakeLists.txt (revision 13793)
+++ scribus/CMakeLists.txt (revision 13794)
@@ -905,10 +905,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