[Cmake] Corresponding CMakeLists file for a Qt's pro file

William A. Hoffman billlist at nycap.rr.com
Sat, 08 May 2004 08:24:08 -0400


Just add the .rc and .def files as sources to the library you are building and cmake should do the right thing.

-Bill

At 02:56 PM 5/5/2004, Venkata wrote:
> 
>Hello,
>I have a program written in Qt and for its compilation a corresponding pro file is used which gives the path for libraries and other files required for the program. Now I integrated my Qt program with ITK. Now I am using cmake and setting all the libraries paths and files required for the program in the CMakeLists.txt file. I could convert some lines of the pro file into corresponding CMakeList file. For eg:
> 
>(lines in pro file)
>HEADERS += imagedialog.ui.h imagedialogimpl.h
>SOURCES += imagedialogimpl.cpp main.cpp
> 
>Into
> 
>(Lines in CMakeList file)
>SET(Image_MOC_SRCS
>imagedialog.ui.h
>imagedialogimpl.h
>)
> 
>SET(Image_SRCS
>imagedialogimpl.cxx
>main.cxx
>)
>Now I need to convert some more lines of pro file into CMakeList file where I am finding difficulty. Those lines are below
> 
>TEMPLATE = lib
>CONFIG += activeqt dll
>RC_FILE = C:\Qt\3.3.1\extensions\activeqt\control\qaxserver.rc
>DEF_FILE = C:\Qt\3.3.1\extensions\activeqt\control\qaxserver.def
> 
>Could anyone let me know the corresponding lines in the CMakeList file for the above lines.
> 
>Thanks
>-Venkat
> 
> 
> 
> 
> 
> 
> 
> 
>