Remove example copying from Build files
Examples are now embedded into the compiled executable using the Qt resource system
MODIFY
Ripes.pro
Ripes.pro
@@ -127,32 +127,6 @@ RESOURCES += \
resources/images.qrc \
examples/examples.qrc
-
-# Copy example projects to build directory - https://dragly.org/2013/11/05/copying-data-files-to-the-build-directory-when-working-with-qmake.html
-# Set various variables to make sure that copying is only allowed once, when OUTDIR is set
-CONFIG(debug, debug|release) {
- OUTDIR = debug
-}
-CONFIG(release, debug|release) {
- OUTDIR = release
-}
-
-COPYEXAMPLES{
- COPIED {
- } else {
- if(win*){
- copydata.commands = $(COPY_DIR) \"$$PWD/examples\" \"$$OUT_PWD/$$OUTDIR/examples\"
- } else {
- copydata.commands = $(COPY_DIR) \"$$PWD/examples\" \"$$OUT_PWD\"
- }
- first.depends = $(first) copydata
- export(first.depends)
- export(copydata.commands)
- QMAKE_EXTRA_TARGETS += first copydata
- CONFIG += COPIED
- }
-}
-
unix {
isEmpty(PREFIX) {
PREFIX = /usr

Remove example copying from Build files

Examples are now embedded into the compiled executable using the Qt resource system