Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to rename / buikd / add copy of subproject to main project ?
Forum Updated to NodeBB v4.3 + New Features

How to rename / buikd / add copy of subproject to main project ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 178 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Anonymous_Banned275
    wrote on last edited by Anonymous_Banned275
    #1

    Library solved
    change TARGET in new project .pro to desired library name

    NEXT
    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 (?)

    1. copy desired project (Linux) to desired folder.
    2. Change .pro file name to desired name
    3. Change the folder directory to desired name.
    4. Use "add existing projects " to add to main subdirs project. Select / add .pro file.
    5. 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

    3657a5d7-8a10-45e8-9b21-67cb967f68a3-image.png

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved