From fc972fd39f52443256aee854bb82f1368bfcf17a Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Thu, 4 Mar 2021 18:55:13 -0800 Subject: [PATCH] CMake: Copy support files into build directory This makes it possible to run bygfoot from the build directory. --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b266e44a..96d1b314 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -160,3 +160,8 @@ if (GETTEXT_FOUND) bygfoot.mo) endforeach() endif() + +add_custom_command(TARGET bygfoot POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy_directory + ${CMAKE_SOURCE_DIR}/support_files + ${CMAKE_BINARY_DIR}/support_files)