mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
490 B
20 lines
490 B
2 years ago
|
file(GLOB_RECURSE java_sources "${OPENCV_JAVA_DIR}/*.java")
|
||
|
|
||
|
set(__sources "")
|
||
|
|
||
|
foreach(dst ${java_sources})
|
||
|
set(__sources "${__sources}${dst}\n")
|
||
|
endforeach()
|
||
|
|
||
|
function(ocv_update_file filepath content)
|
||
|
if(EXISTS "${filepath}")
|
||
|
file(READ "${filepath}" actual_content)
|
||
|
else()
|
||
|
set(actual_content "")
|
||
|
endif()
|
||
|
if(NOT ("${actual_content}" STREQUAL "${content}"))
|
||
|
file(WRITE "${filepath}" "${content}")
|
||
|
endif()
|
||
|
endfunction()
|
||
|
ocv_update_file("${OUTPUT}" "${__sources}")
|