diff options
Diffstat (limited to 'linden/indra/cmake/CopyWinLibs.cmake')
-rw-r--r-- | linden/indra/cmake/CopyWinLibs.cmake | 48 |
1 files changed, 1 insertions, 47 deletions
diff --git a/linden/indra/cmake/CopyWinLibs.cmake b/linden/indra/cmake/CopyWinLibs.cmake index 345761a..e2c45fd 100644 --- a/linden/indra/cmake/CopyWinLibs.cmake +++ b/linden/indra/cmake/CopyWinLibs.cmake | |||
@@ -105,51 +105,5 @@ copy_if_different( | |||
105 | ) | 105 | ) |
106 | set(all_targets ${all_targets} ${out_targets}) | 106 | set(all_targets ${all_targets} ${out_targets}) |
107 | 107 | ||
108 | set(internal_llkdu_path "${CMAKE_SOURCE_DIR}/llkdu") | ||
109 | if(EXISTS ${internal_llkdu_path}) | ||
110 | set(internal_llkdu_src "${CMAKE_BINARY_DIR}/llkdu/${CMAKE_CFG_INTDIR}/llkdu.dll") | ||
111 | set(llkdu_dst "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/llkdu.dll") | ||
112 | ADD_CUSTOM_COMMAND( | ||
113 | OUTPUT ${llkdu_dst} | ||
114 | COMMAND ${CMAKE_COMMAND} -E copy_if_different ${internal_llkdu_src} ${llkdu_dst} | ||
115 | DEPENDS ${internal_llkdu_src} | ||
116 | COMMENT "Copying llkdu.dll ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}" | ||
117 | ) | ||
118 | set(all_targets ${all_targets} ${llkdu_dst}) | ||
119 | else(EXISTS ${internal_llkdu_path}) | ||
120 | set(debug_llkdu_src "${debug_src_dir}/llkdu.dll") | ||
121 | set(debug_llkdu_dst "${CMAKE_CURRENT_BINARY_DIR}/Debug/llkdu.dll") | ||
122 | ADD_CUSTOM_COMMAND( | ||
123 | OUTPUT ${debug_llkdu_dst} | ||
124 | COMMAND ${CMAKE_COMMAND} -E copy_if_different ${debug_llkdu_src} ${debug_llkdu_dst} | ||
125 | DEPENDS ${debug_llkdu_src} | ||
126 | COMMENT "Copying llkdu.dll ${CMAKE_CURRENT_BINARY_DIR}/Debug" | ||
127 | ) | ||
128 | set(all_targets ${all_targets} ${debug_llkdu_dst}) | ||
129 | 108 | ||
130 | set(release_llkdu_src "${release_src_dir}/llkdu.dll") | 109 | add_custom_target(copy_win_libs ALL DEPENDS ${all_targets}) \ No newline at end of file |
131 | set(release_llkdu_dst "${CMAKE_CURRENT_BINARY_DIR}/Release/llkdu.dll") | ||
132 | ADD_CUSTOM_COMMAND( | ||
133 | OUTPUT ${release_llkdu_dst} | ||
134 | COMMAND ${CMAKE_COMMAND} -E copy_if_different ${release_llkdu_src} ${release_llkdu_dst} | ||
135 | DEPENDS ${release_llkdu_src} | ||
136 | COMMENT "Copying llkdu.dll ${CMAKE_CURRENT_BINARY_DIR}/Release" | ||
137 | ) | ||
138 | set(all_targets ${all_targets} ${release_llkdu_dst}) | ||
139 | |||
140 | set(relwithdebinfo_llkdu_dst "${CMAKE_CURRENT_BINARY_DIR}/RelWithDebInfo/llkdu.dll") | ||
141 | ADD_CUSTOM_COMMAND( | ||
142 | OUTPUT ${relwithdebinfo_llkdu_dst} | ||
143 | COMMAND ${CMAKE_COMMAND} -E copy_if_different ${release_llkdu_src} ${relwithdebinfo_llkdu_dst} | ||
144 | DEPENDS ${release_llkdu_src} | ||
145 | COMMENT "Copying llkdu.dll ${CMAKE_CURRENT_BINARY_DIR}/RelWithDebInfo" | ||
146 | ) | ||
147 | set(all_targets ${all_targets} ${relwithdebinfo_llkdu_dst}) | ||
148 | |||
149 | endif (EXISTS ${internal_llkdu_path}) | ||
150 | |||
151 | add_custom_target(copy_win_libs ALL DEPENDS ${all_targets}) | ||
152 | |||
153 | if(EXISTS ${internal_llkdu_path}) | ||
154 | add_dependencies(copy_win_libs llkdu) | ||
155 | endif(EXISTS ${internal_llkdu_path}) | ||