Skip to content

Commit 843ab0a

Browse files
authored
Merge pull request #86 from uyjulian/copy_example_resources
Copy example resources to build folder
2 parents 9ef2892 + 974a3be commit 843ab0a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ if(NOT SKIP_BUILD_EXAMPLES)
290290
target_link_libraries(${targetname}
291291
${GSKIT_SAMPLE_LIBS}
292292
)
293+
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)$")
293294
endmacro (add_executable_example)
294295

295296
set(GSKIT_SAMPLE_DIRS "")

0 commit comments

Comments
 (0)