From 974a3bedc9d58c76b35824e12a76027d930a5b25 Mon Sep 17 00:00:00 2001 From: Julian Uy Date: Thu, 12 Dec 2024 11:13:02 -0600 Subject: [PATCH] add: Copy example resources --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1000b22..c9a1e13 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -290,6 +290,7 @@ if(NOT SKIP_BUILD_EXAMPLES) target_link_libraries(${targetname} ${GSKIT_SAMPLE_LIBS} ) + file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/examples/${targetname}/ DESTINATION ${CMAKE_CURRENT_BINARY_DIR} FILES_MATCHING REGEX "\\.(bmp|dat|fnt|jpg|png|ppm|raw|s|tiff)$") endmacro (add_executable_example) set(GSKIT_SAMPLE_DIRS "")