Hello,<br><br>I have a project with the following structure:<br><br>trunk<br> |-src<br> |-build_dir1<br> |-build_dir2<br> |-another_dir<br> |-CMakeLists.txt<br> |-unimportant_file<br> |-another_unimportant_file<br><br>
I am configuring CPack to make source packages. The content I'm interested in packaging is folder src (and all its contents) and the shown CMakeLists.txt file, and ignore everything else.<br>I have successfully packaged src with<br>
<br>set(CPACK_SOURCE_INSTALLED_DIRECTORIES "${CMAKE_SOURCE_DIR}/src;./src")<br><br>and now I would like to include the CMakeLists.txt file. Since the trunk folder is full of many things I do not wish to install, I'd rather not use CPACK_SOURCE_IGNORE_FILES and specify a cunch of complex rules, but tell CPack to add an additional file. Is this possible?<br>
<br>I was trying out CPACK_INSTALL_COMMANDS, but I haven't figured out how to use it, and the variable is AFAIK pretty much undocumented (either in the book or online).<br><br>Any help would be much appreciated.<br><br>
Adolfo Rodríguez Tsouroukdissian<br>