Skip to content
This repository was archived by the owner on May 9, 2024. It is now read-only.

Commit 591e10c

Browse files
committed
[#29] Add clean-all target which removes generated python and java files from source tree
1 parent af32620 commit 591e10c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

CMakeLists.txt

+12
Original file line numberDiff line numberDiff line change
@@ -167,3 +167,15 @@ target_link_libraries(TestDriver PRIVATE HDK)
167167
target_link_libraries(TestDriver PRIVATE ${Arrow_LIBRARIES} QueryEngine StringDictionary Analyzer Shared OSDependent Logger ${llvm_libs} ${Boost_LIBRARIES})
168168

169169
target_include_directories(TestDriver PRIVATE src/)
170+
171+
add_custom_target(clean-all
172+
COMMAND ${CMAKE_BUILD_TOOL} clean
173+
)
174+
175+
file(GLOB_RECURSE GENERATED_PYTHON_CPP ${CMAKE_SOURCE_DIR}/python/**/*.cpp)
176+
add_custom_target(hdk_python_clean
177+
COMMAND ${CMAKE_COMMAND} -E remove ${GENERATED_PYTHON_CPP}
178+
)
179+
180+
add_dependencies(clean-all hdk_python_clean)
181+
add_dependencies(clean-all calcite_java_clean)

0 commit comments

Comments
 (0)