c++ - Xcopy files to the new directory in pro/pri file -
how can copy entire directory contents new path using pro file. tried "xcopy /s /i /y" not working. can point error doing
binary_destination_path = $$pwd$$separator/dd/ resource_source_path = $$pwd$$separator/temp exported_destination_path = $${binary_destination_path} exported_destination_path ~= s,/,\\,g exported_source_path = $${resource_source_path} exported_source_path ~= s,/,\\,g qt += core qt -= gui config += c++11 target = sample config += console config -= app_bundle template = app sources += main.cpp win32 { qmake_post_link += $$quote(cmd /c xcopy /s /i /y $${exported_source_path}\\copy_to_output $${exported_destination_path}) }
i think looking qt deploy.
deploying qt applications: deploying qt application not require c++ programming. need build qt , application in release mode, following procedures described in documentation.
more info deploy app in windows here.
the windows deployment tool: windows deployment tool designed automate process of creating deployable folder containing qt-related dependencies (libraries, qml imports, plugins, , translations) required run application folder.
also check answer windeploy: https://stackoverflow.com/a/45531369/5068056
i explain screenshots.
Comments
Post a Comment