add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/controllers $/../Resources/controllers) add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/data $/../Resources/data) add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/roms $/../Resources/roms) add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/whdboot $/../Resources/whdboot) add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different $ $/../Resources/plugins/$) add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different $ $/../Resources/plugins/$) # Gather all dependencies with dylibbundler add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD COMMAND dylibbundler -od -b -x $ -d $/../Frameworks/ -p @executable_path/../Frameworks/) if (NOT "${CMAKE_GENERATOR}" MATCHES "Xcode") install(FILES $ DESTINATION $/../Resources/plugins/) install(FILES $ DESTINATION $/../Resources/plugins/) # This one contains the gamecontrollersdb.txt file install(DIRECTORY ${CMAKE_SOURCE_DIR}/controllers DESTINATION $/../Resources) # This one contains the data files install(DIRECTORY ${CMAKE_SOURCE_DIR}/data DESTINATION $/../Resources) # This one contains the AROS kickstart files install(DIRECTORY ${CMAKE_SOURCE_DIR}/roms DESTINATION $/../Resources) # This one contains the whdboot files install(DIRECTORY ${CMAKE_SOURCE_DIR}/whdboot DESTINATION $/../Resources) endif ()