On Sat, Jun 28, 2008 at 5:34 AM, Georgios Petasis &lt;<a href="mailto:petasisg@yahoo.gr">petasisg@yahoo.gr</a>&gt; wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi all,<br>
<br>
I am a totally CMake newbie :-) However, I have spend some time (~3
days) in porting one application of mine from autoconf/make to cmake.
The port was somewhat easy, and for the time being I have tested the
build system under windows only with VC++ 9.0. As a result of this
process I have collected a set of questions that I couldn&#39;t managed to
find answers :-)<br>
<br>
1) Is it possible to know about 32/64 bit build?<br>
If I use the &quot;Visual Studio 9 2008&quot; generator, I get a win32 build.
Similarly, If I use the &quot;Visual Studio 9 2008 Win64&quot; generator, I get
an 64-bit build. Is there a cmake variable that can tell me if it is a
32/64 build, in order to install generated<br>
libraries differently? It would be great if I can find a solution that will work under at least windows &amp; linux.</blockquote><div><br>
I believe you could use the value of CMAKE_SIZEOF_VOID_P and MSVC to perform 32/64-bit specific logic.<br>
<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
2) Is it possible to install only a dll, and skip the .lib file?<br>Usually,
when a dll gets installed, the associated lib is also installed. I
usually write this command for installing shared libraries:<br>
INSTALL ( TARGETS ${TkHtml_NAME}<br>
 &nbsp; &nbsp; &nbsp; &nbsp; RUNTIME DESTINATION CDM/${CMAKE_SYSTEM_NAME}<br>
 &nbsp; &nbsp; &nbsp; &nbsp; LIBRARY DESTINATION CDM/${CMAKE_SYSTEM_NAME}<br>
 &nbsp; &nbsp; &nbsp; &nbsp; ARCHIVE DESTINATION CDM/${CMAKE_SYSTEM_NAME} )<br>
Can somehow &quot;skip&quot; this &quot;ARCHIVE&quot; installation?</blockquote><div><br>
On CMake 2.4.x and 2.6.x the ARCHIVE component of the install command
controls the installation of import libraries on Windows.&nbsp; Simply
remove the ARCHIVE DESTINATION CDM/${CMAKE_SYSTEM_NAME} from your above
code and the .lib files will no longer be installed.<br>
&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">3) In CPack (NSIS generator), is it possible to define an additional MUI language?<br>

Is there a variable for adding additional languages?<br>
Or is it possible to add &quot;!insertmacro MUI_LANGUAGE &quot;some_language&quot;&quot; somehow?<br>
<br>
4) In CPack, is it possible to install something other than exe?<br>
The command I tried is:<br>
SET ( CPACK_PACKAGE_EXECUTABLES ellogon.tcl;Ellogon )<br>
This creates the shortcut to run my application (which is a Tcl/Tk one), but in the project.nsi I get the following:<br>
CreateShortCut &quot;$SMPROGRAMS\$STARTMENU_FOLDER\Ellogon.lnk&quot; &quot;$INSTDIR\bin\ellogon.tcl.exe&quot;<br>
<br>
CPack has added a &quot;bin&quot; directory before it, and an .exe extension. In my original NSIS script, I had something like:<br>
CreateShortCut &quot;$SMPROGRAMS\Ellogon\Ellogon ${PRODUCT_VERSION}.lnk&quot; \<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#39;&quot;$INSTDIR\ellogon.tcl&quot;&#39; &quot;&quot; \<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&quot;$INSTDIR\CDM\Windows\libCDM.dll&quot; &quot;6&quot;<br>
Can something similar be achieved with CPack?</blockquote><br>
Not sure on these two questions.<br>
<br>
</div>-- <br>Philip Lowman