[CMake] CMake, RPATH and installs for distribution of a commercial tool

2007-07-05 Thread gga
I have a commercial application I'm developing and one feature of cmake is throwing me off. Or, put another way, I'm not quite sure how I can take advantage of it to make it work the way I want. Basically, by default cmake creates executables using the -rpath directive. This is great if you are

Re: [CMake] CMake 2.4.6, MinGW and console application

2007-07-05 Thread Brandon Van Every
On 7/5/07, Brandon Van Every <[EMAIL PROTECTED]> wrote: On 7/5/07, Mike Jackson <[EMAIL PROTECTED]> wrote: > http://dev.eclipse.org/newslists/news.eclipse.tools.cdt/msg12121.html > > I think you need to add: > TARGET_LINK_LIBRARIES(map2syBR mingw32) which should link your > program to the libmin

Re: [CMake] CMake 2.4.6, MinGW and console application

2007-07-05 Thread Brandon Van Every
On 7/5/07, Mike Jackson <[EMAIL PROTECTED]> wrote: http://dev.eclipse.org/newslists/news.eclipse.tools.cdt/msg12121.html I think you need to add: TARGET_LINK_LIBRARIES(map2syBR mingw32) which should link your program to the libmingw32.a that is included with the MinGW Distribution. I don't be

Re: [CMake] CMake 2.4.6, MinGW and console application

2007-07-05 Thread Sebarnolds [Seb / Frip]
Thank you both of you, I will try your suggestions tonight and report back tomorrow, whether I succeed or not. Sebastien From: Mike Jackson <[EMAIL PROTECTED]> To: "Brandon Van Every" <[EMAIL PROTECTED]> CC: cmake@cmake.org Subject: Re: [CMake] CMake 2.4.6, MinGW and console application Date:

Re: [CMake] CMake 2.4.6, MinGW and console application

2007-07-05 Thread Mike Jackson
http://dev.eclipse.org/newslists/news.eclipse.tools.cdt/msg12121.html I think you need to add: TARGET_LINK_LIBRARIES(map2syBR mingw32) which should link your program to the libmingw32.a that is included with the MinGW Distribution. -- Mike Jackson Senior Research Engineer Innovative Man

Re: [CMake] CMake 2.4.6, MinGW and console application

2007-07-05 Thread Brandon Van Every
On 7/5/07, Sebarnolds [Seb / Frip] <[EMAIL PROTECTED]> wrote: Hi. > >Do an ADD_EXECUTABLE *without* [WIN32] as an option. See the docs. I think you misunderstand me. You're right, I read too fast. Whether I add or not the WIN32 option after the ADD_EXECUTABLE, it complains about [EMAIL PRO

Re: [CMake] CMake 2.4.6, MinGW and console application

2007-07-05 Thread Sebarnolds [Seb / Frip]
Hi. Do an ADD_EXECUTABLE *without* [WIN32] as an option. See the docs. Cheers, Brandon Van Every I think you misunderstand me. Whether I add or not the WIN32 option after the ADD_EXECUTABLE, it complains about [EMAIL PROTECTED] It doesn't seem to change anything. "ADD_EXECUTABLE(map2syB

Re: [CMake] CMake 2.4.6, MinGW and console application

2007-07-05 Thread Brandon Van Every
On 7/5/07, Sebarnolds [Seb / Frip] <[EMAIL PROTECTED]> wrote: I just want to build a regular console application with a main function and not a WinMain, does anybody knows how I could do this ? Do an ADD_EXECUTABLE *without* [WIN32] as an option. See the docs. Cheers, Brandon Van Every _

[CMake] CMake 2.4.6, MinGW and console application

2007-07-05 Thread Sebarnolds [Seb / Frip]
Hi. I am using CMake 2.4.6 to build my project (quite big, made of several shared libraries and executables, cross-platform Linux & Windows). I currently have two executables which I previously manually added -mwindows to the linking options (I just discovered the possibility to add WIN32 afte

[CMake] Re: Deb and RPM package generation modules

2007-07-05 Thread Mathieu Malaterre
On 7/4/07, Mehdi Rabah <[EMAIL PROTECTED]> wrote: Hi everyone, In case someone is interested in linux package generation within cmake, I've started to improve the existing scripts (http://www.cmake.org/Wiki/CMakeUserUseRPMTools and http://www.cmake.org/Wiki/CMakeUserUseDebian) to make both d