Re: [CMake] cmake support Eclipse CDT

2007-07-31 Thread Eric Noulard
2007/7/31, Brandon Van Every [EMAIL PROTECTED]: On 7/30/07, Andreas Pakulat [EMAIL PROTECTED] wrote: Of course CDT still uses the java-written eclipse platform sdk, but it doesn't have anything else to do with Java. So you're writing a plugin in Java to integrate CMake with Eclipse. Well,

Re: [CMake] Eclipse CMake Generator - Pre-Alpha version

2007-07-31 Thread Eric Noulard
2007/7/31, Miguel A. Figueroa-Villanueva [EMAIL PROTECTED]: On 7/31/07, Eric Noulard wrote: 2007/7/31, Miguel A. Figueroa-Villanueva: Again I may help. I may provide you my hand-made CDT projects files for CMake enabled open-source projects https://savannah.nongnu.org/projects/tsp/

[CMake] Quoted String

2007-07-31 Thread Alexander.Camek
Hi List, I want to add a definition to the compiler, so I do an ADD_DEFINITIONS(). The defintion I want to add is a quoted string which should be parsed with leading and ending . So I tried to escape it with \, but this doesn't also work. It should look like

Re: [CMake] Eclipse CMake Generator - Pre-Alpha version

2007-07-31 Thread Alexander Neundorf
Hi Miguel, On Tuesday 31 July 2007 00:22, Miguel A. Figueroa-Villanueva wrote: Hello Everyone, Recently there has been discussion on the list about the Eclipse IDE (or whatever it is; platform maybe ;) ) and CMake. http://www.cmake.org/pipermail/cmake/2007-July/015294.html

Re: [CMake] Recap of some steps for making Debian files

2007-07-31 Thread Alexander Neundorf
Hi, nice summary :-) Some notes below... On Monday 30 July 2007 20:49, Christian Convey wrote: Some good ideas and some misconceptions have been thrown around as I've tried to use CMake to produce Debian packages. Here's a consolidation of what I think are the major lessons, in case anyone

[CMake] CMake 2.4.7: Generator Visual Studio 7 .NET 2003 seems to ignore certain LINK_FLAGS properties (worked in 2.4.6)

2007-07-31 Thread Gerhard Grimm
Hello there, after upgrading from CMake 2.4.6 to 2.4.7, the previously working build of our software project failed. The failures were caused by missing linker flags in Visual Studio .NET projects that have been specified in the CMakeLists.txt files using set_target_properties(mytarget

Re: [CMake] CMake 2.4.7: Generator Visual Studio 7 .NET 2003 seems to ignore certain LINK_FLAGS properties (worked in 2.4.6)

2007-07-31 Thread Bill Hoffman
Gerhard Grimm wrote: Hello there, after upgrading from CMake 2.4.6 to 2.4.7, the previously working build of our software project failed. The failures were caused by missing linker flags in Visual Studio .NET projects that have been specified in the CMakeLists.txt files using

Re: [CMake] Eclipse CMake Generator - Pre-Alpha version

2007-07-31 Thread Miguel A. Figueroa-Villanueva
On 7/31/07, Alexander Neundorf wrote: On Tuesday 31 July 2007 00:22, Miguel A. Figueroa-Villanueva wrote: Guidance and support: 1. Are the CMake developers interested in this (i.e., will they accept the patches)? If so, how should I coordinate this development. I don't

Re: [CMake] Eclipse CMake Generator - Pre-Alpha version

2007-07-31 Thread Alexander Neundorf
Hi, On Tuesday 31 July 2007 09:51, you wrote: ... Great! If you personally think this is good and can review/apply the patches relatively quickly then that will work well for me. What I was worried about was that I open a feature request and, understandably so, it sits there to be taken care

Re: [CMake] cmake support Eclipse

2007-07-31 Thread Mike Jackson
I have been following this thread and I guess it is time to chime it a bit with what I know. First my background. I used Eclipse since '03 for Java development then switched in mid '06 to C++ development with Eclipse/CDT so I have a fair amount of experience with Eclipse, Ant and about a

AW: [CMake] CMake 2.4.7: Generator Visual Studio 7 .NET 2003 seems to ignore certain LINK_FLAGS properties (worked in 2.4.6)

2007-07-31 Thread Gerhard Grimm
Hi Bill, here's a minimal example, consisting of three files. source.c: - #include stdio.h void MyExport1(void) { puts(MyExport1); } void MyExport2(void) { puts(MyExport2); } - source.def:

Re: [CMake] Eclipse CMake Generator - Pre-Alpha version

2007-07-31 Thread Mike Jackson
Eclipse CDT only supports MinGW on Windows so the fact that it is broken for Cygwin is no surprise. CDT does NOT support nmake at this time because there would be no way to debug the code after it was compiled. There was discussion about this on the CDT newsgroup (nntp://news.eclipse.org

Re: AW: [CMake] CMake 2.4.7: Generator Visual Studio 7 .NET 2003 seems to ignore certain LINK_FLAGS properties (worked in 2.4.6)

2007-07-31 Thread Bill Hoffman
Gerhard Grimm wrote: Hi Bill, here's a minimal example, consisting of three files. source.c: - #include stdio.h void MyExport1(void) { puts(MyExport1); } void MyExport2(void) { puts(MyExport2); }

Re: [CMake] Eclipse CMake Generator - Pre-Alpha version

2007-07-31 Thread Bill Hoffman
Alexander Neundorf wrote: I did run into the following annoyance, but it is rather another topic. When I compile the CMake code in Eclipse using the cygwin tools, then the resulting Eclipse project files are broken. This is due to the fact that it creates the .project file with the cygwin

[CMake] Find wxWidgets and unicode

2007-07-31 Thread Jason Stewart
I am trying to use the FindwxWidgets macro to build a windows/linux program that uses wxWidgets. It works on Windows unless I try to build with unicode, in which case it still finds the non-unicode libraries and my link fails. Everything works correctly on linux. When looking at the

Re: [CMake] cmake support Eclipse

2007-07-31 Thread Eric Noulard
2007/7/31, Brandon Van Every [EMAIL PROTECTED]: On 7/31/07, Eric Noulard [EMAIL PROTECTED] wrote: 2007/7/31, Brandon Van Every [EMAIL PROTECTED]: and CMake doesn't figure out how to do Java, then CMake will lose in the Eclipse world. Not so sure, even if I'm no eclipse expert.

Re: [CMake] Eclipse CMake Generator - Pre-Alpha version

2007-07-31 Thread Alexander Neundorf
On Tuesday 31 July 2007 10:30, Mike Jackson wrote: Eclipse CDT only supports MinGW on Windows so the fact that it is broken for Cygwin is no surprise. Really ? In 2004 a patch was needed for CDT (from Oyvind Harboe I think) to work correctly with cygwin paths, but I thought this patch was

Re: [CMake] cmake support Eclipse

2007-07-31 Thread Mike Jackson
These are my _thoughts_ on what I would like to see as a first cut at CMake/Eclipse integration. As someone has already done in the past day, basically have cmake generate a CDT Makefile project that sets up the .project/.cproject files for eclipse to invoke make on the makefiles that are

Re: [CMake] Eclipse CMake Generator - Pre-Alpha version

2007-07-31 Thread Mike Jackson
CDT Project files are NOT backwards compatible. You will need a generator for CDT 3.x and CDT 4.x. IMHO - Forget CDT 3.x. It is not being developed any more and CDT 4.x is such a leap ahead of 3.x that anyone starting with CDT _should_ be using CDT 4.x. -- Mike Jackson Senior Research

Re: [CMake] Eclipse CMake Generator - Pre-Alpha version

2007-07-31 Thread Mike Jackson
On Jul 31, 2007, at 10:42 AM, Alexander Neundorf wrote: On Tuesday 31 July 2007 10:30, Mike Jackson wrote: Eclipse CDT only supports MinGW on Windows so the fact that it is broken for Cygwin is no surprise. Really ? In 2004 a patch was needed for CDT (from Oyvind Harboe I think) to work

Re: [CMake] Eclipse CMake Generator - Pre-Alpha version

2007-07-31 Thread Bill Hoffman
Mike Jackson wrote: Eclipse CDT only supports MinGW on Windows so the fact that it is broken for Cygwin is no surprise. CDT does NOT support nmake at this time because there would be no way to debug the code after it was compiled. There was discussion about this on the CDT newsgroup

Re: [CMake] Eclipse CMake Generator - Pre-Alpha version

2007-07-31 Thread Brandon Van Every
On 7/31/07, Mike Jackson [EMAIL PROTECTED] wrote: Eclipse CDT only supports MinGW on Windows so the fact that it is broken for Cygwin is no surprise. I've only poked at Eclipse every once in a blue moon, but as far as I know that's just not true. In fact, 1.5 years ago the problem was MinGW

Re: [CMake] Quoted String

2007-07-31 Thread Brandon Van Every
On 7/31/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi List, I want to add a definition to the compiler, so I do an ADD_DEFINITIONS(). The defintion I want to add is a quoted string which should be parsed with leading and ending . So I tried to escape it with \, but this doesn't also

Re: [CMake] Cannot seem to use cygwin latest 2.4.7-1?

2007-07-31 Thread Bill Hoffman
OK, I think this is fixed now. :-) I have just uploaded 2.4.7-2 to cygwin. This one should work. This was the first release done with cpack for cygwin. It exposed a bug with the cygwin setup program. The tar file had the magic number in it for tar, but not gnu tar. Cygwin setup

[CMake] Execute_process with wildcard characters

2007-07-31 Thread Ajay Divekar
I want to execute the following command using EXECUTE_PROCESS. EXECUTE_PROCESS( COMMAND rm -vf */*.*~ RESULT_VARIABLE ret_var) I have some abc.txt~ files. The result variable shows 0 as its value, signifying that the command has been executed properly. The above mentioned files still exists.

AW: AW: [CMake] CMake 2.4.7: Generator Visual Studio 7 .NET 2003 seems to ignore certain LINK_FLAGS properties (worked in 2.4.6)

2007-07-31 Thread Gerhard Grimm
Hi Bill, thanks for your hints. The /DEF problem is fixed now. However, changing the resource container's target type from executable to library (to avoid passing the /DLL flag explicitly) raised another problem: The resource container (which BTW is not the target from my previous example, it

Re: [CMake] Execute_process with wildcard characters

2007-07-31 Thread Bill Hoffman
Ajay Divekar wrote: I want to execute the following command using EXECUTE_PROCESS. EXECUTE_PROCESS( COMMAND rm -vf */*.*~ RESULT_VARIABLE ret_var) I have some abc.txt~ files. The result variable shows 0 as its value, signifying that the command has been executed properly. The above

Re: [CMake] Eclipse CMake Generator - Pre-Alpha version

2007-07-31 Thread Miguel A. Figueroa-Villanueva
On 7/31/07, Bill Hoffman [EMAIL PROTECTED] wrote: Alexander Neundorf wrote: I did run into the following annoyance, but it is rather another topic. When I compile the CMake code in Eclipse using the cygwin tools, then the resulting Eclipse project files are broken. This is due to the

AW: AW: AW: [CMake] CMake 2.4.7: Generator Visual Studio 7 .NET 2003 seems to ignore certain LINK_FLAGS properties (worked in 2.4.6)

2007-07-31 Thread Gerhard Grimm
Hi Bill, I'm using the term resource container for a Win32 DLL containing no executable code but only resources (in our case icons or messages texts for the Windows event log). To build it, one needs to pass the /NOENTRY flag to the linker. Since my last message, I have managed to solve the

Re: [CMake] avoid object file recompilation

2007-07-31 Thread Brandon Van Every
On 7/30/07, gga [EMAIL PROTECTED] wrote: Timur Ivanov wrote: The problem is that common.cpp recompiled 3 times but I would like not to do that waste of time. Is it possible ? No and Yes. No, cmake in general does not allow to do it easily or reliably. But your OS does. Make

[CMake] Cmake variable indicating ctest dashboard build (like DART_ROOT)

2007-07-31 Thread Wheeler, Frederick W (GE, Research)
Cmake list: In the VXL project we use the cmake variable DART_ROOT to determine whether the build is being done for the dashboard. But if ctest is used, DART_ROOT is not set. Is there a different variable that should be used for this purpose that works for both the old tcl-Dart1 and new ctest?

RE: [CMake] Quoted String

2007-07-31 Thread Alexander.Camek
Hi Brandon, Hi List, I want to add a definition to the compiler, so I do an ADD_DEFINITIONS(). The defintion I want to add is a quoted string which should be parsed with leading and ending . So I tried to escape it with \, but this doesn't also work. It should look like

[CMake] Eclipse CDT4 CMake Generator - Pre-Alpha version

2007-07-31 Thread Miguel A. Figueroa-Villanueva
On 7/31/07, Alexander Neundorf wrote: On Tuesday 31 July 2007 09:51, you wrote: ... Great! If you personally think this is good and can review/apply the patches relatively quickly then that will work well for me. What I was worried about was that I open a feature request and,

[CMake] FIND_PATH/LIBRARY do not work when cross compiling.

2007-07-31 Thread Pablo d'Angelo
Hi all, I'm trying the cross compilation support in the latest cvs, and am following the mingw wiki page (I'm on ubuntu feisty): http://www.cmake.org/Wiki/CmakeMingw The example there works fine, but as soon as I try to use external libraries, it can't find them automatically. For

Re: [CMake] Eclipse CDT4 CMake Generator - Pre-Alpha version

2007-07-31 Thread Alexander Neundorf
Hi Miguel, On Tuesday 31 July 2007 13:42, Miguel A. Figueroa-Villanueva wrote: On 7/31/07, Alexander Neundorf wrote: On Tuesday 31 July 2007 09:51, you wrote: ... Great! If you personally think this is good and can review/apply the patches relatively quickly then that will work well

Re: [CMake] FIND_PATH/LIBRARY do not work when cross compiling.

2007-07-31 Thread Alexander Neundorf
On Tuesday 31 July 2007 14:03, Pablo d'Angelo wrote: Hi all, I'm trying the cross compilation support in the latest cvs, and am following the mingw wiki page (I'm on ubuntu feisty): http://www.cmake.org/Wiki/CmakeMingw ... The jpeg library is installed in the system directories:

Re: [CMake] Eclipse CDT4 CMake Generator - Pre-Alpha version

2007-07-31 Thread Juan Sanchez
Alexander Neundorf wrote: Hi Miguel, . . . The indentation is not completely correct: if (!fout) { return; } Hello, Are there any cindent settings to do auto-indenting for the coding standards? Regards, Juan Alexander Neundorf wrote: Hi Miguel, On Tuesday 31 July 2007 13:42, Miguel

Re: [CMake] Patch to FindBoost.cmake.

2007-07-31 Thread Mike Jackson
On Jul 24, 2007, at 8:29 AM, Andreas Schneider wrote: Andreas Pakulat wrote: On 24.07.07 07:35:34, gga wrote: Andreas Schneider wrote: I've rewritten the FindBoost.cmake from scratch some time ago. And we have improved it at OpenWengo. I suggest to ship this version in CMake.

RE: [CMake] Cmake variable indicating ctest dashboard build (likeDART_ROOT)

2007-07-31 Thread Ken Martin
My Dart knowledge is a bit rusty, but I believe that DART_ROOT is set regardless of if you are doing a build for a dashboard. Specifically it is set by anything that includes Dart.cmake, was able to find dart, and has BUILD_TESTING turned on (it is on by default). So the value will not change

[CMake] merging autotool project and qt project

2007-07-31 Thread Marie-Christine Vallet
Qt: 3.3.8 KDE: 3.5.7-0.1.fc6 Fedora KDevelop: 3.4.1 Hi, I have an application for which I am developing a qt UI. I looked on the web for solution in integrating these two and someone suggested (from the qt list) to use cmake. I looked into documentation and did not find a tutorial/documentation

Re: [CMake] Patch to FindBoost.cmake.

2007-07-31 Thread Andreas Pakulat
On 31.07.07 15:11:33, Mike Jackson wrote: I had my own home grown FindBoost.cmake that I have been using but I wanted to start using someone elses in the hopes that it would get put into the cmake distribution.. I was looking at the above FindBoost.cmake and the thing that I seemed to

Re: [CMake] Eclipse CDT4 CMake Generator - Pre-Alpha version

2007-07-31 Thread Miguel A. Figueroa-Villanueva
On 7/31/07, Alexander Neundorf [EMAIL PROTECTED] wrote: Hi Miguel, On Tuesday 31 July 2007 13:42, Miguel A. Figueroa-Villanueva wrote: On 7/31/07, Alexander Neundorf wrote: On Tuesday 31 July 2007 09:51, you wrote: ... Great! If you personally think this is good and can

Re: [CMake] Eclipse CDT4 CMake Generator - Pre-Alpha version

2007-07-31 Thread Alexander Neundorf
On Tuesday 31 July 2007 15:40, you wrote: On 7/31/07, Alexander Neundorf [EMAIL PROTECTED] wrote: ... How do you handle the cmake projects ? You iterate over the map, which effect does this have ? Well, since I want to create the .project/.cproject in the CMAKE_BINARY_DIR what I did was

Re: [CMake] Eclipse CDT4 CMake Generator - Pre-Alpha version

2007-07-31 Thread Mike Jackson
You dont. That is what I tried to explain in one of my other posts. Eclipse has the notion of One project PER top level directory. If you had a project setup like the above then you would have to actually take the folder sub1 and place it at the same level as foo. Let's get straight

[CMake] FIND_LIBRARY finding .dylib or .a

2007-07-31 Thread Mike Jackson
what is the magic incantation to tell FIND_LIBRARY to prefer .dylibs instead of .a (shared vs static)? I have what seem to be the same command yet one will find the .a and the other will find the .dylib. The commands look the same to me? Any help is appreciated.. cmake --help-command

[CMake] .bundles on Mac

2007-07-31 Thread James Bigler
Has anyone built a .bundle library on Mac (NOTE this is *not* a .bundle App). It's like a shared library, but it has the -single_module flag passed in and the extension of .bundle. I tried to change the library's suffix with SET_TARGET_PROPERTIES, but that did weird things to the linker (I'm

Re: [CMake] Eclipse CDT4 CMake Generator - Pre-Alpha version

2007-07-31 Thread Alexander Neundorf
On Tuesday 31 July 2007 16:24, Mike Jackson wrote: You dont. That is what I tried to explain in one of my other posts. Eclipse has the notion of One project PER top level directory. If you had a project setup like the above then you would have to actually take the folder sub1 and place it at

Re: [CMake] .bundles on Mac

2007-07-31 Thread Bill Hoffman
James Bigler wrote: Has anyone built a .bundle library on Mac (NOTE this is *not* a .bundle App). It's like a shared library, but it has the -single_module flag passed in and the extension of .bundle. I tried to change the library's suffix with SET_TARGET_PROPERTIES, but that did weird

Re: [CMake] Eclipse CDT4 CMake Generator - Pre-Alpha version

2007-07-31 Thread Mike Jackson
-- Mike Jackson Senior Research Engineer Innovative Management Technology Services On Jul 31, 2007, at 4:40 PM, Alexander Neundorf wrote: On Tuesday 31 July 2007 16:24, Mike Jackson wrote: You dont. That is what I tried to explain in one of my other posts. Eclipse has the notion of

Re: [CMake] Eclipse CDT4 CMake Generator - Pre-Alpha version

2007-07-31 Thread Karthik Krishnan
On 7/31/07, Alexander Neundorf [EMAIL PROTECTED] wrote: On Tuesday 31 July 2007 16:24, Mike Jackson wrote: You dont. That is what I tried to explain in one of my other posts. Eclipse has the notion of One project PER top level directory. If you had a project setup like the above then you

Re: [CMake] Eclipse CDT4 CMake Generator - Pre-Alpha version

2007-07-31 Thread Miguel A. Figueroa-Villanueva
Hello Mike, My comments below. On 7/31/07, Mike Jackson [EMAIL PROTECTED] wrote: You dont. That is what I tried to explain in one of my other posts. Eclipse has the notion of One project PER top level directory. If you had a project setup like the above then you would have to actually take

[CMake] Re: How to link with MFC libraries?

2007-07-31 Thread Matthew Woehlke
Prashanth Udupa wrote: Any clues how we can author CMakeLists.txt to link against MFC libraries and generate .Net executables? Another thing I want to For .NET stuff I (personally) would probably go with a custom command. -- Matthew Every cloud has a silver lining (except for the mushroom

Re: [CMake] FIND_LIBRARY finding .dylib or .a

2007-07-31 Thread Brandon Van Every
On 7/31/07, Mike Jackson [EMAIL PROTECTED] wrote: what is the magic incantation to tell FIND_LIBRARY to prefer .dylibs instead of .a (shared vs static)? I have what seem to be the same command yet one will find the .a and the other will find the .dylib. The commands look the same to me? Any