Results 1 to 3 of 3

Thread: qmake: add to project but do not compile

  1. #1
    Join Date
    Nov 2007
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default qmake: add to project but do not compile

    Hello everyone,

    I am using Qt 4.3.2 with Visual Studio 2005 on WinXP Pro.

    Is it possible to setup a .pro file to add a source file to a project so that it appears in Visual Studio but not to compile that file when the solution is build?

    Thanks,

    Jesse

  2. #2
    Join Date
    Oct 2007
    Location
    Italy
    Posts
    172
    Thanks
    39
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: qmake: add to project but do not compile

    try to compile the project using a simple qmake -project, qmake yourpro.pro, make and then refresh your visual, is you source file present into the pro?

  3. #3
    Join Date
    Nov 2007
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: qmake: add to project but do not compile

    Sorry I don't think I quite follow your solution. What I want to be able to do is see a source file in the Visual Studio project browser but not have that file built when I build the entire solution. I want to do this because, based on a solution level configuration, certain files need to be either included or omitted from the build. However, I would still like these files to appear in the project browser.

    Currently, qmake -tp vs -r project.pro is run to generate the sln and vcprog files and then the development environment is started.

Similar Threads

  1. Replies: 3
    Last Post: 18th April 2007, 16:31
  2. Qt Cryptographic Architecture
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 9th February 2007, 14:15
  3. Qt-4.2.2 qmake won't compile under visual studio 2005 on vista
    By moowy in forum Installation and Deployment
    Replies: 7
    Last Post: 13th January 2007, 22:06
  4. Project won't compile under Windows (works under Linux)
    By philski in forum Qt Programming
    Replies: 7
    Last Post: 14th September 2006, 16:29
  5. linking user space and kernel space programs with qmake
    By zielchri in forum Qt Programming
    Replies: 9
    Last Post: 9th March 2006, 00:11

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.