mirror of https://github.com/mgba-emu/mgba.git
Qt: Install default shaders
This commit is contained in:
parent
f922f3c152
commit
6833c88284
|
@ -183,6 +183,9 @@ endif()
|
||||||
if(APPLE OR WIN32)
|
if(APPLE OR WIN32)
|
||||||
set_target_properties(${BINARY_NAME}-qt PROPERTIES OUTPUT_NAME ${PROJECT_NAME})
|
set_target_properties(${BINARY_NAME}-qt PROPERTIES OUTPUT_NAME ${PROJECT_NAME})
|
||||||
endif()
|
endif()
|
||||||
|
if (NOT APPLE)
|
||||||
|
install(DIRECTORY ${CMAKE_SOURCE_DIR}/res/shaders DESTINATION ${CMAKE_INSTALL_DATADIR}/${BINARY_NAME} COMPONENT ${BINARY_NAME}-qt)
|
||||||
|
endif()
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
set(DEPLOY_OPTIONS -p platforms/libqcocoa.dylib,audio/libqtaudio_coreaudio.dylib)
|
set(DEPLOY_OPTIONS -p platforms/libqcocoa.dylib,audio/libqtaudio_coreaudio.dylib)
|
||||||
if(NOT CMAKE_INSTALL_NAME_TOOL EQUAL "install_name_tool")
|
if(NOT CMAKE_INSTALL_NAME_TOOL EQUAL "install_name_tool")
|
||||||
|
@ -195,4 +198,5 @@ if(APPLE)
|
||||||
set(DEPLOY_OPTIONS ${DEPLOY_OPTIONS} -R ${CROSS_ROOT})
|
set(DEPLOY_OPTIONS ${DEPLOY_OPTIONS} -R ${CROSS_ROOT})
|
||||||
endif()
|
endif()
|
||||||
add_custom_command(TARGET ${BINARY_NAME}-qt POST_BUILD COMMAND ${CMAKE_SOURCE_DIR}/tools/deploy-mac.py ${DEPLOY_OPTIONS} ${PROJECT_NAME}.app)
|
add_custom_command(TARGET ${BINARY_NAME}-qt POST_BUILD COMMAND ${CMAKE_SOURCE_DIR}/tools/deploy-mac.py ${DEPLOY_OPTIONS} ${PROJECT_NAME}.app)
|
||||||
|
install(DIRECTORY ${CMAKE_SOURCE_DIR}/res/shaders DESTINATION ${PROJECT_NAME}.app/Contents/Resources COMPONENT ${BINARY_NAME}-qt)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue