Download modules/java/jar/list_java_sources.cmake from tgollogly/test: direct link, hf CLI and curl.
- Browser
- Download file 490 Bytes
-
https://huggingface.co/tgollogly/test/resolve/main/modules/java/jar/list_java_sources.cmake
- Command line
-
hf download hf://tgollogly/test/modules/java/jar/list_java_sources.cmake
-
curl -L -o list_java_sources.cmake https://huggingface.co/tgollogly/test/resolve/main/modules/java/jar/list_java_sources.cmake
490 Bytes
| 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}") | |