set_parent_srcs.cmake 215 B

1234567891011
  1. macro(set_parent_srcs)
  2. get_filename_component(CURR_DIR ${CMAKE_CURRENT_LIST_DIR} NAME)
  3. foreach(file ${ARGN})
  4. list(APPEND SRCS ${CURR_DIR}/${file})
  5. set(SRCS "${SRCS}" PARENT_SCOPE)
  6. endforeach()
  7. endmacro()