Skip to content

Commit 86897a8

Browse files
committed
Changed the install rules so that examples' source code is included in the final distribution
1 parent f550501 commit 86897a8

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

cmake/Macros.cmake

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,12 +241,16 @@ macro(sfml_add_example target)
241241
install(TARGETS ${target}
242242
RUNTIME DESTINATION ${INSTALL_MISC_DIR}/examples/${target} COMPONENT examples)
243243

244+
# install the example's source code
245+
install(FILES ${THIS_SOURCES}
246+
DESTINATION ${INSTALL_MISC_DIR}/examples/${target}
247+
COMPONENT examples)
248+
244249
# install the example's resources as well
245250
set(EXAMPLE_RESOURCES "${CMAKE_SOURCE_DIR}/examples/${target}/resources")
246251
if(EXISTS ${EXAMPLE_RESOURCES})
247252
install(DIRECTORY ${EXAMPLE_RESOURCES}
248253
DESTINATION ${INSTALL_MISC_DIR}/examples/${target}
249-
COMPONENT examples
250-
PATTERN ".svn" EXCLUDE)
254+
COMPONENT examples)
251255
endif()
252256
endmacro()

0 commit comments

Comments
 (0)