From e53470418afab971b5dac09affbcbcdd73fe5c3f Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Sat, 15 May 2010 18:38:33 -0500 Subject: [PATCH] Looks like Windows users aren't the only ones that need to be handled carefully. Made CMake scripts copy SDL dylib as part of install build process on Mac OS X. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 997b41b..88f3e50 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -504,6 +504,9 @@ if(WIN32) endif(MINGW) else(WIN32) install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/lugaru DESTINATION ${CMAKE_INSTALL_PREFIX}) + if(APPLE) + install(FILES ${SDLDIR}/lib/macosx/libSDL-1.2.0.dylib DESTINATION ${CMAKE_INSTALL_PREFIX}) + endif(APPLE) endif(WIN32) install(DIRECTORY ${CMAKE_SOURCE_DIR}/Data DESTINATION ${CMAKE_INSTALL_PREFIX}) -- 2.39.2