Hendrik,
and you know you need to escape each \ in your camke code? (that was my
first mistake).
Thus one backslash in regular expressions becomes four "" e.g. to
escape the dot in CMakeLists.txt
E.g.
SET(CPACK_SOURCE_IGNORE_FILES
".*.xml" # globbing *.xml
"/CVS/"
"/.svn
Hendrik Belitz wrote:
Hi Andy,
I just tried the following. I added
SET(CPACK_SOURCE_IGNORE_FILES "/latex/;/xml/;/^CMake/;/\.kdev/")
Setting CPACK_IGNORE_FILES works, here.
At least for listing individual files.
I think your regular expression is wrong.
E..g. ignore foo.xml:
SET(CPACK_IGN
Hi Andy,
I just tried the following. I added
SET(CPACK_SOURCE_IGNORE_FILES "/latex/;/xml/;/^CMake/;/\.kdev/")
to my CMakeLists.txt, run cmake. and afterwards created a source package
using
cpack -G TGZ --config CPackSourceConfig.cmake
My intention was to exclude my documentation directories,
Hi Hendrik,
I will document CPack in the near future. For now, I suggest you look in
CMake.
CPACK_IGNORE_FILES is just a CMake list of regular expressions
(separated with ;):
SET(CPACK_IGNORE_FILES "/CVS/;/\\.svn/;\\.swp$;\\.#;/#")
CPACK_STRIP_FILES is a list of files that will be stripped
hi,
I'm just playing around a little bit with CPack and its features here. I
recently used CPack for the generation of source packages, but needed to
learn that it will just take nearly all the stuff present in the source tree
and throws it into the archive. I assume that I can use
CPACK_SOURC