<div dir="ltr"><div>There are some possible solutions and reference here:</div><div dir="ltr"><a href="https://stackoverflow.com/questions/41471620/cmake-support-make-uninstall">https://stackoverflow.com/questions/41471620/cmake-support-make-uninstall</a><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le sam. 16 févr. 2019 à 15:48, Felix Crazzolara <<a href="mailto:felix.crazzolara@gmail.com">felix.crazzolara@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi everyone<br>
<br>
For my smaller projects I'd like to have 'uninstall' functionality. To <br>
remove installed files I can call:<br>
<br>
xargs rm < build/install_manifest.txt<br>
<br>
Unfortunately this won't delete any folders generated by the <br>
installation. Is there a different file that keeps track of the created <br>
directories, or what is the recommended way to implement such functionality?<br>
<br>
Example:<br>
Suppose that I install <project-name>_some_header.hpp in <br>
<prefix>/include/<project-name>/ using the command install(TARGETS <br>
<project-name> EXPORT <project-name>-targets ARCHIVE DESTINATION lib <br>
PUBLIC_HEADER DESTINATION include/<project-name>) then I want not only <br>
to remove <br>
<prefix>/include/<project-name>/<project-name>_some_header.hpp, but also <br>
the directory <prefix>/include/<project-name>/.<br>
<br>
Cheers,<br>
<br>
Felix Crazzolara<br>
<br>
-- <br>
<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://cmake.org/mailman/listinfo/cmake" rel="noreferrer" target="_blank">https://cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Eric<br></div></div></div></div></div>