Results 1 to 2 of 2

Thread: How do you add project file to existing source files?

  1. #1
    Join Date
    Apr 2012
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default How do you add project file to existing source files?

    I have the Makefile a bunch of source files (.cpp, .h, etc) from a development project I downloaded. I was able to get it to build, run, and can edit, but I need to add a project file (.pro) so I can include a library. What is the best way to accomplish this?

    Thanks

  2. #2
    Join Date
    Feb 2011
    Posts
    354
    Thanks
    17
    Thanked 27 Times in 24 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Windows

    Default Re: How do you add project file to existing source files?

    Qt Code:
    1. TEMPLATE = app
    2. HEADERS = yourheader1.h yourheader2.h
    3. SOURCES = yoursource1.cpp yoursource2.cpp
    4.  
    5. LIBS += "path\to\your\library.lib"
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. Replies: 1
    Last Post: 17th January 2011, 12:27
  2. Replies: 3
    Last Post: 3rd August 2010, 13:12
  3. Replies: 1
    Last Post: 3rd December 2009, 23:34
  4. How to include existing files to project?
    By Asperamanca in forum Qt Tools
    Replies: 2
    Last Post: 14th November 2009, 20:50
  5. Have Creator open source files with project
    By Asperamanca in forum Qt Tools
    Replies: 2
    Last Post: 23rd October 2009, 08:25

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.