summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorMaarten ter Huurne <maarten@treewalker.org>2011-12-12 01:30:42 +0100
committerMaarten ter Huurne <maarten@treewalker.org>2011-12-12 01:30:42 +0100
commitd75f45979b236713a232b7e86c481548eaa7fa5d (patch)
treea61a704f0eafdd73de635190604b52a3a9eb33c8 /Source/Core
parent7423c74deb5d1b092fc9386c11305d8983327288 (diff)
Copy data files into OS X application bundle.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DolphinWX/CMakeLists.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/Core/DolphinWX/CMakeLists.txt b/Source/Core/DolphinWX/CMakeLists.txt
index 91c1c1b58f..fe8b90ed80 100644
--- a/Source/Core/DolphinWX/CMakeLists.txt
+++ b/Source/Core/DolphinWX/CMakeLists.txt
@@ -146,4 +146,15 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
add_custom_command(TARGET ${DOLPHIN_EXE} POST_BUILD
COMMAND ${CMAKE_COMMAND} -P postprocess_bundle.cmake
)
+
+ # Copy data files into application bundle.
+ file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/copy_data_into_bundle.cmake "
+ file(INSTALL ${CMAKE_SOURCE_DIR}/Data/Sys ${CMAKE_SOURCE_DIR}/Data/User
+ DESTINATION ${BUNDLE_PATH}/Contents/Resources
+ )
+ ")
+ add_custom_target(CopyDataIntoBundle ALL
+ COMMAND ${CMAKE_COMMAND} -P copy_data_into_bundle.cmake
+ VERBATIM
+ )
endif()