diff options
author | kinichiro <kinichiro.inoguchi@gmail.com> | 2016-04-07 15:10:01 +0900 |
---|---|---|
committer | Brent Cook <bcook@openbsd.org> | 2016-04-09 13:37:09 -0500 |
commit | c94670a8cd39f8a8843e9adba2a6030adb00ac94 (patch) | |
tree | 05e30bb91d42c1d56abe767dc718c9affb82d8d9 /CMakeLists.txt | |
parent | 752ad82d33bef07591ae323e17de2cb8f0e50e20 (diff) | |
download | portable-c94670a8cd39f8a8843e9adba2a6030adb00ac94.tar.gz portable-c94670a8cd39f8a8843e9adba2a6030adb00ac94.tar.bz2 portable-c94670a8cd39f8a8843e9adba2a6030adb00ac94.zip |
add cmake uninstall functionality
- add uninstall functionality
* see https://cmake.org/Wiki/CMake_FAQ#Can_I_do_.22make_uninstall.22_with_CMake.3F
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index cecaafe..9e12909 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -224,3 +224,11 @@ if(NOT MSVC) | |||
224 | add_subdirectory(man) | 224 | add_subdirectory(man) |
225 | add_subdirectory(tests) | 225 | add_subdirectory(tests) |
226 | endif() | 226 | endif() |
227 | |||
228 | configure_file( | ||
229 | "${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in" | ||
230 | "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake" | ||
231 | IMMEDIATE @ONLY) | ||
232 | |||
233 | add_custom_target(uninstall | ||
234 | COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake) | ||