THRIFT-5147: Add uninstall function
Patch: Zezeng Wang

This closes #2066
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 18e52f6..127ceaf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -135,4 +135,7 @@
     endif()
 endif()
 
+# Create the uninstall target
+add_custom_target(uninstall "${CMAKE_COMMAND}" -P "${PROJECT_SOURCE_DIR}/build/cmake/uninstall.cmake")
+
 PRINT_CONFIG_SUMMARY()