QtCreator Projects setup duplication for paths
-
Hi,
I am working different projects and generally I need same configuration for
PKG_CONFIG_PATH PATH DYLD_FRAMEWORK_PATH DYLD_LIBRARY_PATHEach time I am going to project and filling this variables through manually copting from other
Is there any way to make a master project configuration or a directly copying this environments ?
Thx
-
You can use a common .pri file in your source code and set these variables there. Then just include it into your .pro with
include(somefile.pri).You're probably asking about a global environment setting for Qt Creator - I don't think there is any option to pre-set that. You could perhaps run Qt Creator via a shell script and set the variables there - maybe it will work.
-
Hi,
I am working different projects and generally I need same configuration for
PKG_CONFIG_PATH PATH DYLD_FRAMEWORK_PATH DYLD_LIBRARY_PATHEach time I am going to project and filling this variables through manually copting from other
Is there any way to make a master project configuration or a directly copying this environments ?
Thx
Just to add to @sierdzio: You can set these variables on a "Kit" basis: http://doc.qt.io/qtcreator/creator-targets.html Point 9 - so they apply to each project configured for that Kit.
-
@aha_1980 Thanks... :)
-
@aha_1980 Thanks... :)
So please close this topic as SOLVED. Thanks!