aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/cmake/CopyBackToSource.cmake
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-06 18:24:57 -0500
committerJacek Antonelli2008-09-06 18:25:07 -0500
commit798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch)
tree1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/cmake/CopyBackToSource.cmake
parentSecond Life viewer sources 1.20.15 (diff)
downloadmeta-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.cmake16
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
4MACRO(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 )
14ENDMACRO(COPY_BACK_TO_SOURCE)
15
16