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.
18 lines
562 B
18 lines
562 B
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()
|
|
|