Results 1 to 2 of 2

Thread: QtCreator add a pri file without compiling it

  1. #1
    Join Date
    Jan 2007
    Location
    Paris
    Posts
    459
    Thanks
    98
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4 Qt5

    Default QtCreator add a pri file without compiling it

    Hey trolls,

    I have the following line in my .pro file :

    Qt Code:
    1. include(src/factories/factories.pri)
    To copy to clipboard, switch view to plain text mode 

    I want these files to be added to my QtCreator projet but prevent them from being compiled.

    How can I do that ?

    Thanks.
    Benjamin Arnaud.

  2. #2
    Join Date
    Feb 2009
    Posts
    33
    Thanks
    6
    Thanked 7 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QtCreator add a pri file without compiling it

    QtCreator has an OTHER_FILES variable you can use for displaying files in project tree without compiling them.

    Alternatively, if you want files to be compiled but not visible in QtCreator, you can wrap the include statement in an eval statement since QtCreator does not parse eval statements like qmake does.

Similar Threads

  1. Read binary from file
    By weldpua2008 in forum Newbie
    Replies: 2
    Last Post: 4th April 2009, 00:50
  2. Compiling error with caps file names
    By Caius Aérobus in forum Qt Programming
    Replies: 5
    Last Post: 21st October 2008, 16:34
  3. Set up the Qt4.3.2 with Visual Studio 2005
    By lamoda in forum Installation and Deployment
    Replies: 6
    Last Post: 30th January 2008, 07:51
  4. Extra qualification error while compiling the project file
    By amit_pansuria in forum Qt Programming
    Replies: 1
    Last Post: 8th June 2007, 08:56
  5. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 16:21

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.