How to add two subdir project when empty qmake based project created ?
-
I have created one empty qmake based project
whose content is empty
like
try1.pro// this is emptyNow under this project i want to add two subdir project. what is way to add it ?
-
@Pl45m4 In that can you tell me how to add first subdir project's template as app and other subdir project as lib ?
is there way to using qt creator though it's menu ?
@Qt-embedded-developer said in How to add two subdir project when empty qmake based project created ?:
In that can you tell me how to add first subdir project's template as app and other subdir project as lib ?
Doesn't matter in terms of subdir. But if you have a library you need to link against it in your other project. Also make sure, that the library is built first.
Therefore the option.depends, as you can see in the linked doc page.
The pro file of the library has to be configured usingsharedordllfor a dynamic andstaticorstaticlibfor a static library.
Likemy_lib.pro
CONFIG += shared@Pl45m4 said in How to add two subdir project when empty qmake based project created ?:
Easy to find out when reading the documentation ;-)
it says:
If you need to ensure that the subdirectories are built in a particular order, use the .depends modifier on the relevant SUBDIRS elements.
For example:
SUBDIRS += my_executable my_library tests doc my_executable.depends = my_library tests.depends = my_executableAnother link:
and another one ;-)
-
I have created one empty qmake based project
whose content is empty
like
try1.pro// this is emptyNow under this project i want to add two subdir project. what is way to add it ?
@Qt-embedded-developer said in How to add two subdir project when empty qmake based project created ?:
Now under this project i want to add two subdir project. what is way to add it ?
Easy to find out when reading the documentation ;-)
-
@Qt-embedded-developer said in How to add two subdir project when empty qmake based project created ?:
Now under this project i want to add two subdir project. what is way to add it ?
Easy to find out when reading the documentation ;-)
@Pl45m4 In that can you tell me how to add first subdir project's template as app and other subdir project as lib ?
is there way to using qt creator though it's menu ?
-
@Pl45m4 In that can you tell me how to add first subdir project's template as app and other subdir project as lib ?
is there way to using qt creator though it's menu ?
@Qt-embedded-developer said in How to add two subdir project when empty qmake based project created ?:
In that can you tell me how to add first subdir project's template as app and other subdir project as lib ?
Doesn't matter in terms of subdir. But if you have a library you need to link against it in your other project. Also make sure, that the library is built first.
Therefore the option.depends, as you can see in the linked doc page.
The pro file of the library has to be configured usingsharedordllfor a dynamic andstaticorstaticlibfor a static library.
Likemy_lib.pro
CONFIG += shared@Pl45m4 said in How to add two subdir project when empty qmake based project created ?:
Easy to find out when reading the documentation ;-)
it says:
If you need to ensure that the subdirectories are built in a particular order, use the .depends modifier on the relevant SUBDIRS elements.
For example:
SUBDIRS += my_executable my_library tests doc my_executable.depends = my_library tests.depends = my_executableAnother link:
and another one ;-)
-
Q Qt embedded developer has marked this topic as solved on