2 MACRO(SetupFiles fileList targetList sourceDir dstDir)
4 SET(_OSGSUPP_DST_DIR ${CMAKE_BINARY_DIR}/${dstDir})
7 FILE(MAKE_DIRECTORY ${_OSGSUPP_DST_DIR})
10 FOREACH(_src_file ${${fileList}})
15 COMMAND "${CMAKE_COMMAND}" -E create_symlink ${sourceDir}/${_src_file} ${_OSGSUPP_DST_DIR}/${_src_file} )
20 COMMAND "${CMAKE_COMMAND}" -E copy_if_different "${sourceDir}/${_src_file}" "${_OSGSUPP_DST_DIR}/${_src_file}" )
24 LIST(APPEND ${targetList} ${_OSGSUPP_DST_DIR}/${_src_file})
26 ENDFOREACH(_src_file ${fileList})
30 MACRO(ProcessFile fileList srcFile dstFile filter)
33 COMMAND "${CMAKE_COMMAND}" -DIN_FILE:FILE=${srcFile}
34 -DOUT_FILE:FILE=${dstFile}.proc
38 COMMAND "${CMAKE_COMMAND}" -E copy_if_different "${dstFile}.proc" "${dstFile}")
40 LIST(APPEND ${fileList} ${dstFile})
42 ENDMACRO(ProcessFile fileList srcFile dstFile filter)
45 MACRO(CopyOrLink srcFile dstFile)
49 COMMAND "${CMAKE_COMMAND}" -E create_symlink "${srcFile}" "${dstFile}" )
54 COMMAND "${CMAKE_COMMAND}" -E copy_if_different "${srcFile}" "${dstFile}" )
57 ENDMACRO(CopyOrLink srcFile dstFile)