aizvorski / h264bitstream

A complete set of functions to read and write H.264 video bitstreams, in particular to examine or modify headers.
GNU Lesser General Public License v2.1
732 stars 238 forks source link

Buildscripts/cmake uninstall target #55

Open LostInKadath opened 10 months ago

LostInKadath commented 10 months ago

CMake doesn't support any make uninstall commands by default. This may be embarrassing for users, switching from building with autotools. This PR adds a special uninstall target to do the deinstallation process.

During cmake --install step, an install_manifest.txt file is created, which contains a list of installed files -- binaries, libraries, headers and so on. The uninstall target calls cmake -E rm for every file listed in this manifest. Simple and handy.

To launch the deinstallation process, one can run:

cmake --build .builddir --target uninstall

The information in README.md is updated. An additional workflow is added, which smoke-tests the installation/deinstallation process.