Datasets:

Modalities:
Image
Text
Formats:
text
Size:
< 1K
Libraries:
Datasets
License:
simulation-package / vendor /libigl /cmake /igl /igl_add_tutorial.cmake
ZijunCui's picture
Add files using upload-large-folder tool
6492310 verified
Raw History Blame Contribute Delete
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()