How do I copy a configuration file for a database to the build folder when I compile the project?
Unsolved
General and Desktop
-
I have MSVC2017. I connect it in .pro as follows:
CONFIG(release, debug|release): DESTDIR = $$OUT_PWD/release CONFIG(debug, debug|release): DESTDIR = $$OUT_PWD/debug conf.path = $$DESTDIR conf.files = conf/db.conf INSTALLS += \ conf
in "Add Build Step":
"Commands" "C:\Qt\5.11.0\msvc2017_64\bin\qmake.exe"
"Arguments" "install"
But an assembly error occurs:23:22:21: Запускается: «C:\Qt\5.11.0\msvc2017_64\bin\qmake.exe» install Cannot find file: install. 23:22:21: Процесс «C:\Qt\5.11.0\msvc2017_64\bin\qmake.exe» завершился с кодом 2. Ошибка при сборке/установке проекта ObservationLog (комплект: Desktop Qt 5.11.0 MSVC2017 64bit) Во время выполнения этапа «Сборка»
How do I copy the "conf" folder with the db.conf file to the build folder when I compile the project?
-
Hi,
You can find an implementation in this stackoverflow answer.