Results 1 to 2 of 2

Thread: How can we add sorce files from different folders in a common *.pro file ?

  1. #1
    Join Date
    Aug 2011
    Location
    Mumbai
    Posts
    5
    Qt products
    Qt4
    Platforms
    Windows

    Default How can we add sorce files from different folders in a common *.pro file ?

    This is my *.pro file, this pro file belongs to a project named or2d. This project file is in following path.
    *.pro PATH: F:\VR_View\prashant.patel_CSLPCI\CSLPCI_CVOB\CSL\S RC\5.3.10\dev\src\vr\or2d.pro

    In this project i am using some common files from other projects. Here "cooedit.cpp" is a common file, which lies in different folder. As I have to use *.pro file for linguist purpose, but i am not able to find strings from cooedit.cpp using "lupdate or2d.pro". How can i set path for files in different folders but belong to same project?

    cooedit.cpp's path:
    F:\VR_View\prashant.patel_CSLPCI\CSLPCI_CVOB\CSL\S RC\5.3.10\dev\src\vrlite\cooedit.cpp


    ********** or2d.pro ************************************

    CONFIG += warn_on thread console debug

    TMAKE_CXXFLAGS += -GX

    OBJECTS_DIR = ../../obj

    INCLUDEPATH += ./ ../genlib ../grlib ../cmlib ../geolib \
    ../guilib ../diglib ../vrcg ../trans ../vrtwo

    TARGET = \vr\bin\or2d

    HEADERS += vrcfg.h \
    vrlayer.h \
    digmgr.h \
    cooedit.h \
    or2d.h

    SOURCES+= or2d.cpp \
    vrcfg.cpp \
    vrlayer.cpp \
    cooedit.cpp \
    digmgr.cpp

    TRANSLATIONS += Translations/_or2d_en.ts \
    Translations/_or2d_fr.ts

    INTERFACES =
    win32:LIBS = ../../obj/serial.obj \
    ../../obj/digcfg.obj \
    ../../obj/strclass.obj \
    ../../obj/coord.obj \
    ../../obj/digbase.obj \
    ieee_32m.lib \
    guilib.lib \
    diglib.lib \
    genlib.lib \
    ../../lib/diglib.lib \
    ../../lib/geolib.lib

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,688
    Thanks
    13
    Thanked 1,598 Times in 1,526 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: How can we add sorce files from different folders in a common *.pro file ?

    You add it to the SOURCES variable with an absolute or relative path, just like you have already done with the include paths and tranlsations.

Similar Threads

  1. QFileDialog to select files AND folders
    By superpacko in forum Qt Programming
    Replies: 3
    Last Post: 16th April 2013, 13:59
  2. Replies: 8
    Last Post: 15th May 2012, 06:21
  3. Qt select folders and files dialog.
    By bunjee in forum Qt Programming
    Replies: 5
    Last Post: 13th July 2009, 09:53
  4. Replies: 1
    Last Post: 4th August 2008, 10:02
  5. viewing files or some folders
    By as001622 in forum Qt Programming
    Replies: 4
    Last Post: 2nd June 2008, 13:12

Tags for this Thread

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.