From f361ba72ebaf215a778d9909765d518a3fa2360d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Agenor?= Date: Fri, 28 Feb 2025 18:07:12 -0300 Subject: [PATCH] Copying the Shaders directory to the build directory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: André Agenor --- App/CMakeLists.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/App/CMakeLists.txt b/App/CMakeLists.txt index c3a7d17..41248f3 100644 --- a/App/CMakeLists.txt +++ b/App/CMakeLists.txt @@ -15,4 +15,11 @@ set(SOURCES add_executable(App ${SOURCES}) target_link_libraries(App glfw) target_link_libraries(App glad) -target_link_libraries(App glm) \ No newline at end of file +target_link_libraries(App glm) + +add_custom_target(copy_directory ALL + COMMAND ${CMAKE_COMMAND} -E copy_directory + ${CMAKE_CURRENT_SOURCE_DIR}/Shaders + ${CMAKE_CURRENT_BINARY_DIR}/Shaders + COMMENT "Copying..." +)