We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f550501 commit 86897a8Copy full SHA for 86897a8
1 file changed
cmake/Macros.cmake
@@ -241,12 +241,16 @@ macro(sfml_add_example target)
241
install(TARGETS ${target}
242
RUNTIME DESTINATION ${INSTALL_MISC_DIR}/examples/${target} COMPONENT examples)
243
244
+ # install the example's source code
245
+ install(FILES ${THIS_SOURCES}
246
+ DESTINATION ${INSTALL_MISC_DIR}/examples/${target}
247
+ COMPONENT examples)
248
+
249
# install the example's resources as well
250
set(EXAMPLE_RESOURCES "${CMAKE_SOURCE_DIR}/examples/${target}/resources")
251
if(EXISTS ${EXAMPLE_RESOURCES})
252
install(DIRECTORY ${EXAMPLE_RESOURCES}
253
DESTINATION ${INSTALL_MISC_DIR}/examples/${target}
- COMPONENT examples
- PATTERN ".svn" EXCLUDE)
254
255
endif()
256
endmacro()
0 commit comments