From d36ee9b845800dfbc6aa503aa6844cd98f6f80ed Mon Sep 17 00:00:00 2001 From: inikep Date: Fri, 3 Jun 2016 10:24:00 +0200 Subject: [PATCH] cmake project: added "make clean-all" --- projects/cmake/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/projects/cmake/CMakeLists.txt b/projects/cmake/CMakeLists.txt index ae8f7be6e..9650eb4f2 100644 --- a/projects/cmake/CMakeLists.txt +++ b/projects/cmake/CMakeLists.txt @@ -52,3 +52,8 @@ ADD_SUBDIRECTORY(programs) #----------------------------------------------------------------------------- INCLUDE(CMakeModules/AddExtraCompilationFlags.cmake) ADD_EXTRA_COMPILATION_FLAGS() + +ADD_CUSTOM_TARGET(clean-all + COMMAND ${CMAKE_BUILD_TOOL} clean + COMMAND rm -rf ${CMAKE_BINARY_DIR}/ +)