2
0

igl_target_sources.cmake 335 B

12345678
  1. function(igl_target_sources module_name)
  2. if(${CMAKE_VERSION} VERSION_LESS 3.19 AND NOT LIBIGL_USE_STATIC_LIBRARY)
  3. # Old approach: defines a dummy custom target for the IDE
  4. add_custom_target(${module_name}_ SOURCES ${ARGN})
  5. else()
  6. target_sources(${module_name} PRIVATE ${ARGN})
  7. endif()
  8. endfunction()