src/platform/cmake/ExportDirectory.cmake (view raw)
1macro(export_directory PREFIX FILES) 2 set(${PREFIX}_SRC) 3 foreach(SRCFILE IN LISTS ${FILES}) 4 list(APPEND ${PREFIX}_SRC "${CMAKE_CURRENT_SOURCE_DIR}/${SRCFILE}") 5 endforeach() 6 set(${PREFIX}_SRC ${${PREFIX}_SRC} PARENT_SCOPE) 7endmacro()