From dbcc55a196cd0d1cab7053b339d937c5a614eb8e Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Fri, 9 Oct 2015 17:06:01 +0300 Subject: [PATCH] cleanup /src|gen folders to remove stalled/unused Java files --- modules/java/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/java/CMakeLists.txt b/modules/java/CMakeLists.txt index 1a1512d361..68d3ff9cad 100644 --- a/modules/java/CMakeLists.txt +++ b/modules/java/CMakeLists.txt @@ -7,6 +7,13 @@ if(IOS OR WINRT OR NOT PYTHON_DEFAULT_AVAILABLE OR NOT ANT_EXECUTABLE OR NOT (JN ocv_module_disable(java) endif() +if(EXISTS ${CMAKE_BINARY_DIR}/src) + execute_process(COMMAND ${CMAKE_COMMAND} -E remove_directory "${CMAKE_BINARY_DIR}/src") +endif() +if(EXISTS ${CMAKE_BINARY_DIR}/gen) + execute_process(COMMAND ${CMAKE_COMMAND} -E remove_directory "${CMAKE_BINARY_DIR}/gen") +endif() + set(the_description "The java bindings") ocv_add_module(java BINDINGS opencv_core opencv_imgproc) ocv_module_include_directories("${CMAKE_CURRENT_SOURCE_DIR}/generator/src/cpp")