Qt creator project settings
-
Hello. I have a project with non default build settings. I specified build directory, I added custom build steps. But when I load project on another PC, or on my PC after reinstalling Qt, Qt creator has default settings. How I can save settings in the project like a Visual Studio? When I load project on different machines, build settings should be automatically loaded. Thank you
-
Hello. I have a project with non default build settings. I specified build directory, I added custom build steps. But when I load project on another PC, or on my PC after reinstalling Qt, Qt creator has default settings. How I can save settings in the project like a Visual Studio? When I load project on different machines, build settings should be automatically loaded. Thank you
@vadim.savchuk Such settings are stored in *.pro.user file. But it isn't a good idea to share these files between different machines and different users. It is better to specify these settings in *.pro file.
-
@vadim.savchuk Such settings are stored in *.pro.user file. But it isn't a good idea to share these files between different machines and different users. It is better to specify these settings in *.pro file.
@jsulm Thank you for reply. But how I can add custom Build steps in .pro file? I added them in "Build&Run" tab.
-
@jsulm Thank you for reply. But how I can add custom Build steps in .pro file? I added them in "Build&Run" tab.
@vadim.savchuk See http://doc.qt.io/qt-5/qmake-variable-reference.html
http://doc.qt.io/qt-5/qmake-manual.html
For example to specify build directory you can use DESTDIR variable:DESTDIR = ../../lib
-
@vadim.savchuk See http://doc.qt.io/qt-5/qmake-variable-reference.html
http://doc.qt.io/qt-5/qmake-manual.html
For example to specify build directory you can use DESTDIR variable:DESTDIR = ../../lib
@jsulm I know this. I mean custom build step. For example, I run bat file in custom build step.
-
@jsulm I know this. I mean custom build step. For example, I run bat file in custom build step.
@vadim.savchuk Take a look at the links I posted. For example http://doc.qt.io/qt-5/qmake-advanced-usage.html could be helpful.