diff options
author | Jacek Antonelli | 2008-09-06 18:24:57 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-06 18:25:07 -0500 |
commit | 798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch) | |
tree | 1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/cmake/CopyBackToSource.cmake | |
parent | Second Life viewer sources 1.20.15 (diff) | |
download | meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2 meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz |
Second Life viewer sources 1.21.0-RC
Diffstat (limited to 'linden/indra/cmake/CopyBackToSource.cmake')
-rw-r--r-- | linden/indra/cmake/CopyBackToSource.cmake | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/linden/indra/cmake/CopyBackToSource.cmake b/linden/indra/cmake/CopyBackToSource.cmake new file mode 100644 index 0000000..d217df9 --- /dev/null +++ b/linden/indra/cmake/CopyBackToSource.cmake | |||
@@ -0,0 +1,16 @@ | |||
1 | # -*- cmake -*- | ||
2 | # Copies a binary back to the source directory | ||
3 | |||
4 | MACRO(COPY_BACK_TO_SOURCE target) | ||
5 | GET_TARGET_PROPERTY(FROM ${target} LOCATION) | ||
6 | SET(TO ${CMAKE_CURRENT_SOURCE_DIR}) | ||
7 | #MESSAGE("TARGET ${target} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy ${FROM} ${TO}") | ||
8 | ADD_CUSTOM_COMMAND( | ||
9 | TARGET ${target} POST_BUILD | ||
10 | COMMAND ${CMAKE_COMMAND} -E copy ${FROM} ${TO} | ||
11 | DEPENDS ${FROM} | ||
12 | COMMENT "Copying ${target} to ${CMAKE_CURRENT_BINARY_DIR}" | ||
13 | ) | ||
14 | ENDMACRO(COPY_BACK_TO_SOURCE) | ||
15 | |||
16 | |||