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. What is "target.path = $$[QT_INSTALL_EXAMPLES]/widgets/mainwindows/mdi" in .pro
Forum Updated to NodeBB v4.3 + New Features

What is "target.path = $$[QT_INSTALL_EXAMPLES]/widgets/mainwindows/mdi" in .pro

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 4.2k Views 2 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.
  • H Offline
    H Offline
    harveyab
    wrote on 1 Apr 2015, 15:00 last edited by
    #1

    Why are these last three lines in my project .pro file:

    # install
    target.path = $$[QT_INSTALL_EXAMPLES]/widgets/mainwindows/mdi
    INSTALLS += target
    

    The project started from the mdi example, and I copied it to my own directory.
    Can I (Should I) simply delete these three lines (or comment then out)?
    Do they do anything?
    Should target.path or INSTALLS be set to something else?
    Thanks

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 2 Apr 2015, 00:02 last edited by
      #2

      Hi,

      These lines is for telling the build system where to install these when calling make install after a build.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      H 1 Reply Last reply 2 Apr 2015, 01:57
      0
      • S SGaist
        2 Apr 2015, 00:02

        Hi,

        These lines is for telling the build system where to install these when calling make install after a build.

        H Offline
        H Offline
        harveyab
        wrote on 2 Apr 2015, 01:57 last edited by
        #3

        @SGaist So after I copy an example to my own location, I should edit these? or delete them?
        I don't want any connection to the original location of the example. Right?

        E 1 Reply Last reply 12 Mar 2021, 03:16
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 2 Apr 2015, 21:55 last edited by
          #4

          If you don't plan to call make install then you can just ignore them

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1
          • H harveyab
            2 Apr 2015, 01:57

            @SGaist So after I copy an example to my own location, I should edit these? or delete them?
            I don't want any connection to the original location of the example. Right?

            E Offline
            E Offline
            eyllanesc
            wrote on 12 Mar 2021, 03:16 last edited by
            #5

            @harveyab What that command simply does is copy the executable to a specific folder, so if your goal is not to copy it to that folder then delete that pair of commands.

            If you want me to help you develop some work then you can write to my email: e.yllanescucho@gmal.com.

            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