From 2bbf92ad5ae7708bf18ac7ef333e9a979d8d1bde Mon Sep 17 00:00:00 2001 From: Uneven Prankster Date: Thu, 16 Nov 2023 21:12:27 -0300 Subject: Working so hard like a soldier Can't afford a thing on TV --- raylib/CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'raylib/CMakeLists.txt') diff --git a/raylib/CMakeLists.txt b/raylib/CMakeLists.txt index be978d1..236aa9a 100644 --- a/raylib/CMakeLists.txt +++ b/raylib/CMakeLists.txt @@ -37,6 +37,17 @@ include(BuildOptions) # Main sources directory (the second parameter sets the output directory name to raylib) add_subdirectory(src raylib) +# Uninstall target +if(NOT TARGET uninstall) + configure_file( + "${CMAKE_MODULE_PATH}/Uninstall.cmake" + "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake" + IMMEDIATE @ONLY) + + add_custom_target(uninstall + COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake) +endif() + if (${BUILD_EXAMPLES}) MESSAGE(STATUS "Building examples is enabled") add_subdirectory(examples) -- cgit v1.2.3