How to rename / buikd / add copy of subproject to main project ?
-
Library solved
change TARGET in new project .pro to desired library nameNEXT
Refactor all conflicting / common symbols in new copy....CAUTION
( some/ most ?) Refactoring is irreversible !!!It is prudent to open only the new project so you do not accidentally refactor something you do not want to change....
If the new copy has "FORM" there is more work to do...
Tefactor
ADDENDUM / FYI (?)
- copy desired project (Linux) to desired folder.
- Change .pro file name to desired name
- Change the folder directory to desired name.
- Use "add existing projects " to add to main subdirs project. Select / add .pro file.
- Compile and observe
project source added to main.pro file
project added to "projects tree "
TODO
If the new project is a "library" more work is needed to build such new library....In more copies are desired - make a copy of the current , base project folder , OS (Linux) will change the name , but then, it can be added (copied) to SAME directory as the first copy, after that it can be renamed as desired ( see step #3)
II have decided to duplicate subproject using plain directory copy. I have renamed the copied directory, and added it to my main project.
however, QT Creator still uses the original subproject name.
It would ; be nice to change the new copy subproject name in QTCreator .
how and where ?PS the new project is a library and now I have TWO libraries of same name