hedgewars/CMakeLists.txt
changeset 8322 50369fa5053b
parent 8316 89232b2fa1d6
child 8330 aaefa587e277
child 8347 716c05f19401
--- a/hedgewars/CMakeLists.txt	Sat Dec 22 21:43:39 2012 -0500
+++ b/hedgewars/CMakeLists.txt	Mon Dec 24 03:00:18 2012 +0100
@@ -224,6 +224,11 @@
             DEPENDS ${engine_sources}
             )
         add_custom_target(hwengine.${build_arch} ALL DEPENDS "${EXECUTABLE_OUTPUT_PATH}/hwengine.${build_arch}")
+        add_custom_command(TARGET hwengine.${build_arch} POST_BUILD
+            COMMAND "install_name_tool"
+            ARGS -id @executable_path/../Frameworks/${engine_output_name}
+                ${EXECUTABLE_OUTPUT_PATH}/hwengine.${build_arch}
+            )
     endforeach()
 
     add_custom_command(OUTPUT "${EXECUTABLE_OUTPUT_PATH}/${engine_output_name}"