diff options
| author | Richard Qin <richard.qin.x@gmail.com> | 2026-04-14 20:49:24 +0800 |
|---|---|---|
| committer | Richard Qin <richard.qin.x@gmail.com> | 2026-04-14 20:49:24 +0800 |
| commit | e9d48b020d986eb97fb0c00d87bc7bf8a9c10ffa (patch) | |
| tree | c4d7884cc18bdb9f2b78180382d128e46c9a3e00 /ricochet/CMakeLists.txt | |
| parent | 77e910cc68f08eb547c45318a050a23191f65209 (diff) | |
| download | rcc-project-e9d48b020d986eb97fb0c00d87bc7bf8a9c10ffa.tar.gz rcc-project-e9d48b020d986eb97fb0c00d87bc7bf8a9c10ffa.tar.xz | |
feat: add uninstall target to CMake build configuration
Diffstat (limited to 'ricochet/CMakeLists.txt')
| -rw-r--r-- | ricochet/CMakeLists.txt | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/ricochet/CMakeLists.txt b/ricochet/CMakeLists.txt index 560341c..c2150b8 100644 --- a/ricochet/CMakeLists.txt +++ b/ricochet/CMakeLists.txt @@ -34,4 +34,14 @@ install(TARGETS ricochet RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib -)
\ No newline at end of file +) + +if(NOT TARGET uninstall) + configure_file( + "${PROJECT_SOURCE_DIR}/etc/cmake_uninstall.cmake.in" + "${PROJECT_BINARY_DIR}/cmake_uninstall.cmake" + IMMEDIATE @ONLY) + + add_custom_target(uninstall + COMMAND ${CMAKE_COMMAND} -P "${PROJECT_BINARY_DIR}/cmake_uninstall.cmake") +endif()
\ No newline at end of file |
