CMake is a great tool when building cross-plattform software. It offers also install target so you can build and install software this way:
# create of-of-source build directory mkdir bld cd bld # run CMake to generate a Makefile ccmake .. # Build in 4 cores make -j 4 # Install into CMAKE_INSTALL_PREFIX (default is /usr/local) sudo make install
However there is no uninstall target. But this is no problem as long as you have a shell and the xargs command (part of GNU findutils).
CMake creates a file called install_manifest.txt when executing the install target. This contains a list of all installed files. So for removing them you simply need to execute this command:
# uninstall
xargs rm < install_manifest.txt
Comments
comments powered by Disqus