Results 1 to 1 of 1

Thread: Qt Project files, determining if Qt or MSVC

  1. #1
    Join Date
    Jul 2013
    Posts
    15
    Thanks
    1
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Qt Project files, determining if Qt or MSVC

    Hi all

    WinXPsp3
    Qt 5.1.0, Qt Creator 2.7.2
    MSVC 2010 Ultimate

    I build projects in both Qt and MSVC.

    In the project file (.pro)
    What are the scopes for determining if the make is MSVC or Qt:

    Something like:
    qmake:LIBS += MyLibs/ThisLib/libthelib.dll.a
    nmake:LIBS += MyLibs/ThisLib/thelib.lib

    Obviously that does not work, I suspect the I have the scope names wrong and have been unsuccessful at finding a list of them.

    Thanks

    -Enjoy
    fh : )_~


    Added after 1 48 minutes:


    After many trials and errors I came up with the following.

    msvc:LIBS += C:/Libraries/Taglib/lib/tag.lib
    *g++:LIBS += C:/Libraries/Taglib/lib/libtag.dll.a

    Note the Astrix *.

    Others that work:
    win32-msvc2010
    win32-g++

    Be nice to find a list ... The docs I read mentioned nothing about the Astrix or a list.

    -Enjoy
    fh : )_~
    Last edited by Festus Hagen; 24th July 2013 at 21:38.

Similar Threads

  1. MSVC Project generated using qmake - turn off flat structure
    By Piskvorkar in forum Qt Programming
    Replies: 3
    Last Post: 4th February 2013, 23:25
  2. Replies: 1
    Last Post: 29th September 2011, 11:14
  3. Replies: 1
    Last Post: 15th August 2011, 23:26
  4. Replies: 1
    Last Post: 3rd December 2009, 23:34
  5. visual studio project files - adding extra files
    By luf in forum Qt Programming
    Replies: 3
    Last Post: 13th June 2008, 21:05

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.