Download vendor/libigl/cmake/igl/igl_add_tutorial.cmake from AVSim/simulation-package: direct link, hf CLI and curl.
- Browser
- Download file 562 Bytes
-
https://huggingface.co/datasets/AVSim/simulation-package/resolve/main/vendor/libigl/cmake/igl/igl_add_tutorial.cmake
- Command line
-
hf download hf://datasets/AVSim/simulation-package/vendor/libigl/cmake/igl/igl_add_tutorial.cmake
-
curl -L -o igl_add_tutorial.cmake https://huggingface.co/datasets/AVSim/simulation-package/resolve/main/vendor/libigl/cmake/igl/igl_add_tutorial.cmake
562 Bytes
| function(igl_add_tutorial name) | |
| # Only create tutorial if dependencies have been enabled in the current build | |
| foreach(module IN ITEMS ${ARGN}) | |
| if(NOT TARGET ${module}) | |
| return() | |
| endif() | |
| endforeach() | |
| message(STATUS "Creating libigl tutorial: ${name}") | |
| add_executable(${name} ${CMAKE_CURRENT_SOURCE_DIR}/${name}/main.cpp) | |
| target_link_libraries(${name} PRIVATE | |
| igl::core | |
| igl::tutorial_data | |
| ${ARGN} | |
| ) | |
| set_target_properties(${name} PROPERTIES FOLDER Libigl_Tutorials) | |
| endfunction() | |