mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Some OS X related fixes
This commit is contained in:
parent
c7899fc14a
commit
c5e0e48d98
@ -74,6 +74,10 @@ if(ENABLE_TEST)
|
|||||||
find_package(Boost 1.48.0 COMPONENTS program_options filesystem system thread locale unit_test_framework REQUIRED)
|
find_package(Boost 1.48.0 COMPONENTS program_options filesystem system thread locale unit_test_framework REQUIRED)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(APPLE)
|
||||||
|
set(Boost_LIBRARIES ${Boost_LIBRARIES} libiconv.dylib) # Our prebuilt boost_locale for OS X depends on iconv
|
||||||
|
endif()
|
||||||
|
|
||||||
if(NOT WIN32)
|
if(NOT WIN32)
|
||||||
set(FFmpeg_FIND_COMPONENTS AVFORMAT SWSCALE)
|
set(FFmpeg_FIND_COMPONENTS AVFORMAT SWSCALE)
|
||||||
find_package(FFmpeg REQUIRED)
|
find_package(FFmpeg REQUIRED)
|
||||||
|
@ -90,14 +90,16 @@ elseif(APPLE)
|
|||||||
cp -r ${CMAKE_HOME_DIRECTORY}/osx/vcmibuilder.app ${BUNDLE_PATH}/MacOS/vcmibuilder.app &&
|
cp -r ${CMAKE_HOME_DIRECTORY}/osx/vcmibuilder.app ${BUNDLE_PATH}/MacOS/vcmibuilder.app &&
|
||||||
|
|
||||||
# Copy frameworks
|
# Copy frameworks
|
||||||
cp -r ${CMAKE_HOME_DIRECTORY}/${CMAKE_FRAMEWORK_PATH} ${BUNDLE_PATH}/Frameworks &&
|
cp -r ${CMAKE_HOME_DIRECTORY}/${CMAKE_FRAMEWORK_PATH} ${BUNDLE_PATH}/Frameworks/ &&
|
||||||
|
|
||||||
# Copy vcmi data
|
# Copy vcmi data
|
||||||
mkdir -p ${BUNDLE_PATH}/Data &&
|
mkdir -p ${BUNDLE_PATH}/Data &&
|
||||||
mkdir -p ${BUNDLE_PATH}/Data/Mods &&
|
mkdir -p ${BUNDLE_PATH}/Data/Mods &&
|
||||||
cp -r ${CMAKE_HOME_DIRECTORY}/config ${BUNDLE_PATH}/Data/config &&
|
mkdir -p ${BUNDLE_PATH}/Data/launcher &&
|
||||||
cp -r ${CMAKE_HOME_DIRECTORY}/Mods/vcmi ${BUNDLE_PATH}/Data/Mods/vcmi &&
|
cp -r ${CMAKE_HOME_DIRECTORY}/config/ ${BUNDLE_PATH}/Data/config/ &&
|
||||||
cp -r ${CMAKE_HOME_DIRECTORY}/Mods/WoG ${BUNDLE_PATH}/Data/Mods/WoG)
|
cp -r ${CMAKE_HOME_DIRECTORY}/Mods/vcmi/ ${BUNDLE_PATH}/Data/Mods/vcmi/ &&
|
||||||
|
cp -r ${CMAKE_HOME_DIRECTORY}/Mods/WoG/ ${BUNDLE_PATH}/Data/Mods/WoG/ &&
|
||||||
|
cp -r ${CMAKE_HOME_DIRECTORY}/launcher/icons/ ${BUNDLE_PATH}/Data/launcher/icons/)
|
||||||
|
|
||||||
add_custom_command(TARGET vcmiclient POST_BUILD COMMAND ${MakeVCMIBundle})
|
add_custom_command(TARGET vcmiclient POST_BUILD COMMAND ${MakeVCMIBundle})
|
||||||
else()
|
else()
|
||||||
|
Loading…
Reference in New Issue
Block a user