Download build/_deps/catch2-src/CMake/MiscFunctions.cmake from camenduru/thrust: direct link, hf CLI and curl.
- Browser
- Download file 1.23 kB
-
https://huggingface.co/camenduru/thrust/resolve/main/build/_deps/catch2-src/CMake/MiscFunctions.cmake
- Command line
-
hf download hf://camenduru/thrust/build/_deps/catch2-src/CMake/MiscFunctions.cmake
-
curl -L -o MiscFunctions.cmake https://huggingface.co/camenduru/thrust/resolve/main/build/_deps/catch2-src/CMake/MiscFunctions.cmake
1.23 kB
| #checks that the given hard-coded list contains all headers + sources in the given folder | |
| function(CheckFileList LIST_VAR FOLDER) | |
| set(MESSAGE " should be added to the variable ${LIST_VAR}") | |
| set(MESSAGE "${MESSAGE} in ${CMAKE_CURRENT_LIST_FILE}\n") | |
| file(GLOB GLOBBED_LIST "${FOLDER}/*.cpp" | |
| "${FOLDER}/*.hpp" | |
| "${FOLDER}/*.h") | |
| list(REMOVE_ITEM GLOBBED_LIST ${${LIST_VAR}}) | |
| foreach(EXTRA_ITEM ${GLOBBED_LIST}) | |
| string(REPLACE "${CATCH_DIR}/" "" RELATIVE_FILE_NAME "${EXTRA_ITEM}") | |
| message(AUTHOR_WARNING "The file \"${RELATIVE_FILE_NAME}\"${MESSAGE}") | |
| endforeach() | |
| endfunction() | |
| function(CheckFileListRec LIST_VAR FOLDER) | |
| set(MESSAGE " should be added to the variable ${LIST_VAR}") | |
| set(MESSAGE "${MESSAGE} in ${CMAKE_CURRENT_LIST_FILE}\n") | |
| file(GLOB_RECURSE GLOBBED_LIST "${FOLDER}/*.cpp" | |
| "${FOLDER}/*.hpp" | |
| "${FOLDER}/*.h") | |
| list(REMOVE_ITEM GLOBBED_LIST ${${LIST_VAR}}) | |
| foreach(EXTRA_ITEM ${GLOBBED_LIST}) | |
| string(REPLACE "${CATCH_DIR}/" "" RELATIVE_FILE_NAME "${EXTRA_ITEM}") | |
| message(AUTHOR_WARNING "The file \"${RELATIVE_FILE_NAME}\"${MESSAGE}") | |
| endforeach() | |
| endfunction() | |