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.
9 lines
335 B
9 lines
335 B
1 year ago
|
function(igl_target_sources module_name)
|
||
|
if(${CMAKE_VERSION} VERSION_LESS 3.19 AND NOT LIBIGL_USE_STATIC_LIBRARY)
|
||
|
# Old approach: defines a dummy custom target for the IDE
|
||
|
add_custom_target(${module_name}_ SOURCES ${ARGN})
|
||
|
else()
|
||
|
target_sources(${module_name} PRIVATE ${ARGN})
|
||
|
endif()
|
||
|
endfunction()
|