On Sat, Jun 28, 2008 at 5:34 AM, Georgios Petasis <<a href="mailto:petasisg@yahoo.gr">petasisg@yahoo.gr</a>> 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't managed to
find answers :-)<br>
<br>
1) Is it possible to know about 32/64 bit build?<br>
If I use the "Visual Studio 9 2008" generator, I get a win32 build.
Similarly, If I use the "Visual Studio 9 2008 Win64" 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 & 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>
RUNTIME DESTINATION CDM/${CMAKE_SYSTEM_NAME}<br>
LIBRARY DESTINATION CDM/${CMAKE_SYSTEM_NAME}<br>
ARCHIVE DESTINATION CDM/${CMAKE_SYSTEM_NAME} )<br>
Can somehow "skip" this "ARCHIVE" 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. Simply
remove the ARCHIVE DESTINATION CDM/${CMAKE_SYSTEM_NAME} from your above
code and the .lib files will no longer be installed.<br>
</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 "!insertmacro MUI_LANGUAGE "some_language"" 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 "$SMPROGRAMS\$STARTMENU_FOLDER\Ellogon.lnk" "$INSTDIR\bin\ellogon.tcl.exe"<br>
<br>
CPack has added a "bin" directory before it, and an .exe extension. In my original NSIS script, I had something like:<br>
CreateShortCut "$SMPROGRAMS\Ellogon\Ellogon ${PRODUCT_VERSION}.lnk" \<br>
'"$INSTDIR\ellogon.tcl"' "" \<br>
"$INSTDIR\CDM\Windows\libCDM.dll" "6"<br>
Can something similar be achieved with CPack?</blockquote><br>
Not sure on these two questions.<br>
<br>
</div>-- <br>Philip Lowman