[CMake] CMake tar.gz package does not include all installed files

Nicolas Mora nicolas at babelouest.org
Thu Feb 8 09:47:09 EST 2018


Hello,

I use a CMakeLists.txt script to build an application which works pretty 
well so far, except for the tar.gz package build.

In the install procedure, I copy the application executable, the config 
files and, SysV init and SystemD service files, and an entire directory.

In the make install and in the .deb file generated, all those files are 
correctly installed. But the .tar.gz package only has the executable and 
the config file, not the rest.

Can anyone help me point out where my mistake is?

The script is available here:
https://github.com/babelouest/glewlwyd/blob/cmake/CMakeLists.txt

The install commands that are missing in the .tar.gz package are the 
following:
https://github.com/babelouest/glewlwyd/blob/cmake/CMakeLists.txt#L211
https://github.com/babelouest/glewlwyd/blob/cmake/CMakeLists.txt#L212
https://github.com/babelouest/glewlwyd/blob/cmake/CMakeLists.txt#L213

And the .tar.gz package generator commands are here:
https://github.com/babelouest/glewlwyd/blob/cmake/CMakeLists.txt#L252

Thanks in advance


More information about the CMake mailing list