mapcreator git · master
SDL3 2.5D game and engine using assets, with map editor
C++ 99.3%git clone https://git.christianimmanuel.de/sdl-graphics/mapcreator.gitwget https://git.christianimmanuel.de/sdl-graphics/mapcreator/archive/mapcreator.tar.gzAdd clean command
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" +) +