[Insight-users] Corresponding CMakeLists file for a Qt's pro file

Venkata venkata@wayne.edu
Tue May 4 17:49:20 EDT 2004


This is a multi-part message in MIME format.

------=_NextPart_000_0009_01C431D6.37E6A000
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: 7bit

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
 
 
 
 
 
 
 
 
 

------=_NextPart_000_0009_01C431D6.37E6A000
Content-Type: text/html;
	charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">


<meta name=3DProgId content=3DWord.Document>
<meta name=3DGenerator content=3D"Microsoft Word 10">
<meta name=3DOriginator content=3D"Microsoft Word 10">
<link rel=3DFile-List href=3D"cid:filelist.xml@01C431D6.37A689C0">
<!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:Compatibility>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]-->
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;
	text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;
	text-underline:single;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	mso-style-noshow:yes;
	mso-ansi-font-size:10.0pt;
	mso-bidi-font-size:10.0pt;
	font-family:Arial;
	mso-ascii-font-family:Arial;
	mso-hansi-font-family:Arial;
	mso-bidi-font-family:Arial;
	color:windowtext;}
span.SpellE
	{mso-style-name:"";
	mso-spl-e:yes;}
span.GramE
	{mso-style-name:"";
	mso-gram-e:yes;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;
	mso-header-margin:.5in;
	mso-footer-margin:.5in;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */=20
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0in 5.4pt 0in 5.4pt;
	mso-para-margin:0in;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";}
</style>
<![endif]-->
</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple =
style=3D'tab-interval:.5in'>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Hello,<o:p></o:p></span></font></p>

<p class=3DMsoNormal =
style=3D'text-align:justify;mso-layout-grid-align:none;
text-autospace:none'><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:
10.0pt;font-family:"Courier New"'>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:<o:p></o:p></span></font></p>

<p class=3DMsoNormal =
style=3D'text-align:justify;mso-layout-grid-align:none;
text-autospace:none'><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:
10.0pt;font-family:"Courier New"'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal align=3Dcenter =
style=3D'text-align:center;mso-layout-grid-align:
none;text-autospace:none'><font size=3D2 face=3D"Courier New"><span
style=3D'font-size:10.0pt;font-family:"Courier New"'>(<span =
class=3DGramE>lines</span>
in pro file)<o:p></o:p></span></font></p>

<p class=3DMsoNormal align=3Dcenter =
style=3D'text-align:center;mso-layout-grid-align:
none;text-autospace:none'><font size=3D2 face=3D"Courier New"><span
style=3D'font-size:10.0pt;font-family:"Courier New"'>HEADERS +=3D =
imagedialog.ui.h
imagedialogimpl.h<o:p></o:p></span></font></p>

<p class=3DMsoNormal align=3Dcenter =
style=3D'text-align:center;mso-layout-grid-align:
none;text-autospace:none'><font size=3D2 face=3D"Courier New"><span
style=3D'font-size:10.0pt;font-family:"Courier New"'>SOURCES +=3D
imagedialogimpl.cpp main.cpp<o:p></o:p></span></font></p>

<p class=3DMsoNormal align=3Dcenter =
style=3D'text-align:center;mso-layout-grid-align:
none;text-autospace:none'><font size=3D2 face=3D"Courier New"><span
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal align=3Dcenter =
style=3D'text-align:center;mso-layout-grid-align:
none;text-autospace:none'><font size=3D2 face=3D"Courier New"><span
style=3D'font-size:10.0pt;font-family:"Courier =
New"'>Into<o:p></o:p></span></font></p>

<p class=3DMsoNormal align=3Dcenter =
style=3D'text-align:center;mso-layout-grid-align:
none;text-autospace:none'><font size=3D2 face=3D"Courier New"><span
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal align=3Dcenter =
style=3D'text-align:center;mso-layout-grid-align:
none;text-autospace:none'><font size=3D2 face=3D"Courier New"><span
style=3D'font-size:10.0pt;font-family:"Courier New"'>(Lines in CMakeList =
file)<o:p></o:p></span></font></p>

<p class=3DMsoNormal align=3Dcenter =
style=3D'text-align:center;mso-layout-grid-align:
none;text-autospace:none'><span class=3DGramE><font size=3D2 =
face=3D"Courier New"><span
style=3D'font-size:10.0pt;font-family:"Courier =
New"'>SET(</span></font></span><font
size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'>Image_MOC_SRCS<o:p></o:p></span></font></p>

<p class=3DMsoNormal align=3Dcenter =
style=3D'text-align:center;mso-layout-grid-align:
none;text-autospace:none'><font size=3D2 face=3D"Courier New"><span
style=3D'font-size:10.0pt;font-family:"Courier =
New"'>imagedialog.ui.h<o:p></o:p></span></font></p>

<p class=3DMsoNormal align=3Dcenter =
style=3D'text-align:center;mso-layout-grid-align:
none;text-autospace:none'><font size=3D2 face=3D"Courier New"><span
style=3D'font-size:10.0pt;font-family:"Courier =
New"'>imagedialogimpl.h<o:p></o:p></span></font></p>

<p class=3DMsoNormal align=3Dcenter =
style=3D'text-align:center;mso-layout-grid-align:
none;text-autospace:none'><font size=3D2 face=3D"Courier New"><span
style=3D'font-size:10.0pt;font-family:"Courier =
New"'>)<o:p></o:p></span></font></p>

<p class=3DMsoNormal align=3Dcenter =
style=3D'text-align:center;mso-layout-grid-align:
none;text-autospace:none'><font size=3D2 face=3D"Courier New"><span
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal align=3Dcenter =
style=3D'text-align:center;mso-layout-grid-align:
none;text-autospace:none'><span class=3DGramE><font size=3D2 =
face=3D"Courier New"><span
style=3D'font-size:10.0pt;font-family:"Courier =
New"'>SET(</span></font></span><font
size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'>Image_SRCS<o:p></o:p></span></font></p>

<p class=3DMsoNormal align=3Dcenter =
style=3D'text-align:center;mso-layout-grid-align:
none;text-autospace:none'><font size=3D2 face=3D"Courier New"><span
style=3D'font-size:10.0pt;font-family:"Courier =
New"'>imagedialogimpl.cxx<o:p></o:p></span></font></p>

<p class=3DMsoNormal align=3Dcenter =
style=3D'text-align:center;mso-layout-grid-align:
none;text-autospace:none'><font size=3D2 face=3D"Courier New"><span
style=3D'font-size:10.0pt;font-family:"Courier =
New"'>main.cxx<o:p></o:p></span></font></p>

<p class=3DMsoNormal align=3Dcenter =
style=3D'text-align:center;mso-layout-grid-align:
none;text-autospace:none'><font size=3D2 face=3D"Courier New"><span
style=3D'font-size:10.0pt;font-family:"Courier =
New"'>)<o:p></o:p></span></font></p>

<p class=3DMsoNormal =
style=3D'text-align:justify;mso-layout-grid-align:none;
text-autospace:none'><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:
10.0pt;font-family:"Courier New"'>Now I need to convert some more lines =
of pro
file into CMakeList file where I am finding difficulty. Those lines are =
below<o:p></o:p></span></font></p>

<p class=3DMsoNormal align=3Dcenter =
style=3D'text-align:center;mso-layout-grid-align:
none;text-autospace:none'><font size=3D2 face=3D"Courier New"><span
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal align=3Dcenter =
style=3D'text-align:center;mso-layout-grid-align:
none;text-autospace:none'><font size=3D2 face=3D"Courier New"><span
style=3D'font-size:10.0pt;font-family:"Courier New"'>TEMPLATE =3D =
lib<o:p></o:p></span></font></p>

<p class=3DMsoNormal align=3Dcenter =
style=3D'text-align:center;mso-layout-grid-align:
none;text-autospace:none'><font size=3D2 face=3D"Courier New"><span
style=3D'font-size:10.0pt;font-family:"Courier New"'>CONFIG +=3D =
activeqt dll<o:p></o:p></span></font></p>

<p class=3DMsoNormal align=3Dcenter =
style=3D'text-align:center;mso-layout-grid-align:
none;text-autospace:none'><font size=3D2 face=3D"Courier New"><span
style=3D'font-size:10.0pt;font-family:"Courier New"'>RC_FILE =3D
C:\Qt\3.3.1\extensions\activeqt\control\qaxserver.rc<o:p></o:p></span></f=
ont></p>

<p class=3DMsoNormal align=3Dcenter =
style=3D'text-align:center;mso-layout-grid-align:
none;text-autospace:none'><font size=3D2 face=3D"Courier New"><span
style=3D'font-size:10.0pt;font-family:"Courier New"'>DEF_FILE =3D
C:\Qt\3.3.1\extensions\activeqt\control\qaxserver.def<o:p></o:p></span></=
font></p>

<p class=3DMsoNormal align=3Dcenter =
style=3D'text-align:center;mso-layout-grid-align:
none;text-autospace:none'><font size=3D2 face=3D"Courier New"><span
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal =
style=3D'text-align:justify;mso-layout-grid-align:none;
text-autospace:none'><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:
10.0pt;font-family:"Courier New"'>Could anyone let me know the =
corresponding
lines in the CMakeList file for the above <span =
class=3DGramE>lines.</span><o:p></o:p></span></font></p>

<p class=3DMsoNormal =
style=3D'text-align:justify;mso-layout-grid-align:none;
text-autospace:none'><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:
10.0pt;font-family:"Courier New"'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal =
style=3D'text-align:justify;mso-layout-grid-align:none;
text-autospace:none'><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:
10.0pt;font-family:"Courier New"'>Thanks<o:p></o:p></span></font></p>

<p class=3DMsoNormal =
style=3D'text-align:justify;mso-layout-grid-align:none;
text-autospace:none'><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:
10.0pt;font-family:"Courier New"'>-Venkat<o:p></o:p></span></font></p>

<p class=3DMsoNormal align=3Dcenter =
style=3D'text-align:center;mso-layout-grid-align:
none;text-autospace:none'><font size=3D2 face=3D"Courier New"><span
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal align=3Dcenter =
style=3D'text-align:center;mso-layout-grid-align:
none;text-autospace:none'><font size=3D2 face=3D"Courier New"><span
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal align=3Dcenter =
style=3D'text-align:center;mso-layout-grid-align:
none;text-autospace:none'><font size=3D2 face=3D"Courier New"><span
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal align=3Dcenter =
style=3D'text-align:center;mso-layout-grid-align:
none;text-autospace:none'><font size=3D2 face=3D"Courier New"><span
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal =
style=3D'mso-layout-grid-align:none;text-autospace:none'><font
size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal =
style=3D'mso-layout-grid-align:none;text-autospace:none'><font
size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal =
style=3D'mso-layout-grid-align:none;text-autospace:none'><font
size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal =
style=3D'mso-layout-grid-align:none;text-autospace:none'><font
size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>

------=_NextPart_000_0009_01C431D6.37E6A000--




More information about the Insight-users mailing list