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. Keeping compiled x32, x64 configurations separated

Keeping compiled x32, x64 configurations separated

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.0k 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.
  • M Offline
    M Offline
    Michael.R.LegakoL-3com.com
    wrote on last edited by
    #1

    I need to test my QT application to ensure it runs on both 32 and 64 bit versions ( of both Windows and Linux). Qmake has this very nice feature so that a single .pro file can detect if I'm compiling on a Windows or Linux machine using these conditional statements:

    unix {
    LIBS += ...
    DEFINES += ...
    }

    win32 {
    LIBS += ...
    DEFINES += ...
    }

    which work great for maintaining my application so that it will compile and link correctly no matter what OS I'm on. (I assume there is something simlar of Mac OS too).

    But I want my DESTDIR variable path to have separate paths for x32 and x64 (32 and 64 bit applications). Is there a conditional I can use to distinguish this? i.e.,

    x32 {
    DESTDIR = ../bin/x32/Debug
    }

    x64 {
    DESTDIR = ../bin/x64/Debug
    }

    ????
    Mike

    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      "This":http://qt-project.org/faq/answer/how_can_i_detect_in_the_.pro_file_if_i_am_compiling_on_a_32_bit_or_a_64_bi might help you.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Michael.R.LegakoL-3com.com
        wrote on last edited by
        #3

        Thanks Chris,
        Much obliged. Looks like QMAKE_TARGET.arch might do the trick...
        Mike

        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