Nimbin[12]?SDL & Graphics / mapcreator / commits / 1bce989

mapcreator git · master

SDL3 2.5D game and engine using assets, with map editor

sdl3 c++ game engine map-editor cmake · first commit 2025-10-31 · last commit 2026-09-07 (1 month ago) · synced 3 days ago · upstream: git.ide3.de/hsnr/sdl-spieleentwicklung/map_creator

C++ 99.3%
git clone https://git.christianimmanuel.de/sdl-graphics/mapcreator.gitwget https://git.christianimmanuel.de/sdl-graphics/mapcreator/archive/mapcreator.tar.gz

Add clean command

Christian Immanuel · 2026-02-10 12:39 · 1bce9899bf1b9c01f3a5e547ef92f6e8acc9ec5f

 CMakeLists.txt | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 04e5345..a0c9b9e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -57,3 +57,18 @@ elseif(ENABLE_DEBUG STREQUAL "OPTIMIZED")
 
     target_compile_definitions(map_editor PRIVATE NDEBUG)
 endif()
+
+
+# At the end of your CMakeLists.txt
+
+add_custom_target(clean-all
+    COMMAND ${CMAKE_COMMAND} -E rm -rf
+        ${CMAKE_CURRENT_BINARY_DIR}/CMakeCache.txt
+        ${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles
+        ${CMAKE_CURRENT_BINARY_DIR}/Makefile
+        ${CMAKE_CURRENT_BINARY_DIR}/cmake_install.cmake
+        ${CMAKE_CURRENT_BINARY_DIR}/map_editor
+        ${CMAKE_CURRENT_BINARY_DIR}/map_editor.exe  # Windows
+    COMMENT "Cleaning all build artifacts"
+)
+