CMake: Copy support files into build directory

This makes it possible to run bygfoot from the build directory.
This commit is contained in:
Tom Stellard 2021-03-04 18:55:13 -08:00
parent 9b2c330170
commit fc972fd39f
1 changed files with 5 additions and 0 deletions

View File

@ -160,3 +160,8 @@ if (GETTEXT_FOUND)
bygfoot.mo) bygfoot.mo)
endforeach() endforeach()
endif() endif()
add_custom_command(TARGET bygfoot POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory
${CMAKE_SOURCE_DIR}/support_files
${CMAKE_BINARY_DIR}/support_files)