From a8e379553e19004a619eddad5eed46188e6082a9 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sat, 13 May 2017 14:57:34 +0300 Subject: [PATCH] Copy default soundfont in post build step --- src/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a9b65cb1d..157775ad7 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1260,6 +1260,11 @@ if( NOT WIN32 ) COMMAND chmod +x ${CMAKE_CURRENT_BINARY_DIR}/link-make COMMAND /bin/sh -c ${CMAKE_CURRENT_BINARY_DIR}/link-make ) endif() + +add_custom_command(TARGET zdoom POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy_if_different + ${CMAKE_SOURCE_DIR}/soundfont/gzdoom.sf2 $) + if( CMAKE_COMPILER_IS_GNUCXX ) # GCC misoptimizes this file set_source_files_properties( oplsynth/fmopl.cpp PROPERTIES COMPILE_FLAGS "-fno-tree-dominator-opts -fno-tree-fre" )