Re: [CMake] Problem of Compiling VTK5.0 with Qt GUI Support in Win2000

2006-06-05 Thread Haifeng Zhao
On 05/06/06, William A. Hoffman <[EMAIL PROTECTED]> wrote: At 01:23 PM 6/5/2006, Brad King wrote:>I don't think there is any free Qt version that works with MSVC and is supported by Trolltech.However, this patch works quite well, and should workfor your purposes: http://sourceforge.net/projects/qtw

Re: [CMake] CMake problems OSX 10.4 64-bit

2006-06-05 Thread William A. Hoffman
At 07:02 PM 6/5/2006, jonathan grimm wrote: >This program is failing with the errors below. A corresponding >c(stdio) program works. >This started on the vtkusers list. I am getting compile errors with VTK kwsys. >Any suggestions? >this is with -arch ppc64 > >PROJECT (Hello64) > >ADD_EXECUTABLE(H

[CMake] Incorrect code generated in DSP project file for IDL source file -- HELP!

2006-06-05 Thread Bennett Smith
Hello, I am trying to use cmake for building a project on Windows. This project is currently built using Visual Studio 6.0, and it uses the ATL libraries to produce some COM components. Part of this is the invocation of the MIDL compiler to process a file with the .IDL extension. When I add this

[CMake] CMake problems OSX 10.4 64-bit

2006-06-05 Thread jonathan grimm
This program is failing with the errors below. A corresponding c(stdio) program works. This started on the vtkusers list. I am getting compile errors with VTK kwsys. Any suggestions? this is with -arch ppc64 PROJECT (Hello64) ADD_EXECUTABLE(Hello64 hello.c) ADD_EXECUTABLE(HelloCXX64 hello.cxx)

[CMake] Re: unneccessary configure for library targets

2006-06-05 Thread Jan Woetzel
Brad King wrote: CMake generates rules to automatically regenerate the project when CMakeLists.txt code changes (2.0 did also). For some reason Visual Studio is deciding to run these rules probably because it thinks the CMake input files have changed. You'll have to check file modification

[CMake] FIND_LIBRARY force?

2006-06-05 Thread Miguel A. Figueroa-Villanueva
Hello, If I have a FIND_LIBRARY entry that depends on a variable, such as LIB_DIR here: FIND_LIBRARY(XXX_LIB lib_name ${LIB_DIR}/lib) How can I force the FIND_LIBRARY to run again upon changing the LIB_DIR value. Regularly it won't do it because there is a XXX_LIB entry for it already in the ca

Re: Fwd: [CMake] Error adding rule for c:/dev/blah/../blah/CMakeLists.txt

2006-06-05 Thread Phillip Hellewell
On 6/5/06, Brad King <[EMAIL PROTECTED]> wrote: The bug fix will just tell you to use this signature of ADD_SUBDIRECTORYin this situation.  The problem is that you are specifying a path to asource tree that is outside the top-level source tree on which CMake is run (myproj in your test case).  CMak

Re: [CMake] 3rd party cmake files

2006-06-05 Thread Brad King
Jan Woetzel wrote: Brad King wrote: If it has found this file then why does it need a find script to find QtDBUS since it has just found something from the package? Brad, I do not agree if multiple packages/find scripts come into play because each client project has to take care of cmakes

Re: Fwd: [CMake] Error adding rule for c:/dev/blah/../blah/CMakeLists.txt

2006-06-05 Thread Phillip Hellewell
On 6/5/06, Brad King <[EMAIL PROTECTED]> wrote: Use   ADD_SUBDIRECTORY(../mylib mylib)I'm working on a fix to produce a better error message when you do notdo this.So is this just a workaround for a bug that will eventually be fixed, or do you always have to specifying a binary directory for librar

Re: [CMake] build time / unneccessary configure for library targets on switch from 2.0.6 to 2.4.2

2006-06-05 Thread Brandon J. Van Every
Jan Woetzel wrote: In particular when nothing has changed the "nothing to do" build now takes >> 60 seconds. With 2.06 it took < 5 seconds as expected to build when everything was up to date. I am actually testing on Windows with Visual Studio .net 2003. I've noticed my custom .scm --> .c

Re: [CMake] 3rd party cmake files

2006-06-05 Thread Jan Woetzel
Brad King wrote: If it has found this file then why does it need a find script to find QtDBUS since it has just found something from the package? Brad, I do not agree if multiple packages/find scripts come into play because each client project has to take care of cmakes internal structure.

Re: [CMake] Question about Windows support.

2006-06-05 Thread Ryan Connelly
I noticed this post earlier. Bill, how would i use the "unsupported feature" of cmake to use precompiled headers for visual studio 2005? I am about to start write a new generator which extends the existing code, but was wondering if there was some undocumented way to do this. Otherwise i am go

[CMake] C/CXX compilation conflict ( /TC /TP )

2006-06-05 Thread Jan Woetzel
Hi, ADD_LIBRARY (foo foo.cpp bar.c) compiles "bar.c" with flags /TC /TP options for C *and* CXX on visual studio .net 2003 with cmake 2.4.2. If I remember correctly the behavior in 2.06 was "add one cpp file to a target and all files are compiled as cpp". Do I need some special SET_SO

Re: [CMake] 3rd party cmake files

2006-06-05 Thread Brad King
Alexander Neundorf wrote: what's the preferred way to distribute cmake files for 3rd party projects ? Currently cmake looks for files in ${CMAKE_ROOT}/Modules and in CMAKE_MODULE_PATH. Now (e.g. the QtDBUS package) builds with cmake and actually should come with its own cmake files. One way i

[CMake] Possible Configure_File bug

2006-06-05 Thread Michael Bell
Hi, I use cmake with perl to help me manage directories. A perl script might have something like this: my $installdir = "@EXECUTABLE_OUTPUT_PATH@"; The CMakeLists.txt file would use CONFIGURE_FILE to set the path automatically: CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${file} ${EXECUT

Re: Fwd: [CMake] Error adding rule for c:/dev/blah/../blah/CMakeLists.txt

2006-06-05 Thread Brad King
Phillip Hellewell wrote: In Linux with gmake I still have a problem using SUBDIRS (or ADD_SUBDIRECTORY) command with a relative path. I am using CMake 2.4.2. The error I get when I try to run make is: Scanning dependencies of target mylib make[2]: *** No rule to make target `../mylib/CMakeFi

Re: [CMake] Problem of Compiling VTK5.0 with Qt GUI Support in Win2000

2006-06-05 Thread William A. Hoffman
At 01:23 PM 6/5/2006, Brad King wrote: >I don't think there is any free Qt version that works with MSVC and is >supported by Trolltech. However, this patch works quite well, and should work for your purposes: http://sourceforge.net/projects/qtwin/ -Bill

Re: [CMake] 3rd party cmake files

2006-06-05 Thread Jan Woetzel
Alexander Neundorf wrote: what's the preferred way to distribute cmake files for 3rd party projects ? installs ...into ${CMAKE_ROOT}/Modules . This won't work if the user doesn't have root access. And user find script can't have the same name as standard find scripts. We "override" so

Re: [CMake] build time / unneccessary configure for library targets on switch from 2.0.6 to 2.4.2

2006-06-05 Thread Brad King
Jan Woetzel wrote: In particular when nothing has changed the "nothing to do" build now takes >> 60 seconds. With 2.06 it took < 5 seconds as expected to build when everything was up to date. The problem seems to be: Although nothing has changed cmake configures, generates and writes toplevel

Re: [CMake] Problem of Compiling VTK5.0 with Qt GUI Support in Win2000

2006-06-05 Thread Brad King
Haifeng Zhao wrote: I am not sure what compiler was used to build Qt. Because it is a binary installation downloaded from the Qt official website. Do you mean I have to download the Qt source and build it with MSVC? I also found a solution for to change the Qt libraries extension. That is to

[CMake] build time / unneccessary configure for library targets on switch from 2.0.6 to 2.4.2

2006-06-05 Thread Jan Woetzel
Hi, I just switched from 2.06 to 2.4.2 and noticed that compilation time increased considerably - which is annoying. In particular when nothing has changed the "nothing to do" build now takes >> 60 seconds. With 2.06 it took < 5 seconds as expected to build when everything was up to date.

Re: [CMake] Problem of Compiling VTK5.0 with Qt GUI Support in Win2000

2006-06-05 Thread Haifeng Zhao
Dear Brad,I am not sure what compiler was used to build Qt. Because it is a binary installation downloaded from the Qt official website. Do you mean I have to download the Qt source and build it with MSVC?I also found a solution for to change the Qt libraries extension. That is to modify the linkin

[CMake] 3rd party cmake files

2006-06-05 Thread Alexander Neundorf
Hi, what's the preferred way to distribute cmake files for 3rd party projects ? Currently cmake looks for files in ${CMAKE_ROOT}/Modules and in CMAKE_MODULE_PATH. Now (e.g. the QtDBUS package) builds with cmake and actually should come with its own cmake files. One way is to contribute these f

Re: [CMake] Problem of Compiling VTK5.0 with Qt GUI Support in Win2000

2006-06-05 Thread Brad King
Haifeng Zhao wrote: I am trying to compile VTK5.0 with Qt GUI Support in Windows 2000 that has Qt Open-Sourced 4.1.2 and CMake 2.4.2 installed. After QVTK is enabled in CMake, configuring it will prompt a message of "QtCore/QtGUI library is not found". This was because CMake did not find Qt l

Re: [CMake] Question about Windows support.

2006-06-05 Thread Sylvain Benner
> What I need is a way to add in a specific attribute in the XML project > (namely UsingPrecompiledHeaders = X). This will tell the ide what to do. To write to the XML files additionnal info that it is not supported by CMake, you must write your own generator. Or extend the current generator

Re: [CMake] [Patch] Colored output for make

2006-06-05 Thread Brad King
Bertrand Jacquin wrote: On 6/3/06, Thomas Zander <[EMAIL PROTECTED]> wrote: I noticed how sometimes I got colored output and other times I did not when typing make. I just discovered that cmake uses a string compare to the term name to figure out which support color. I don't think thats the co

[CMake] Re: libs only target - works with 2.42

2006-06-05 Thread Jan Woetzel
Jan Woetzel wrote: ADD_DEPENDENCIES(libs lib1 lib2) This works, great! For completeness: This works with cmake 2.4.2. With Cmake 2.0.6 the dependencies to teh sourcve files are not generated correctly. Everything is fine, now with 2.4.2. Jan. -- Dipl.-Ing. Jan Woetzel ---

Re: [CMake] Question about Windows support.

2006-06-05 Thread Ryan Connelly
Sylvain, I read your post about getting precompiled headers to work. However, I am still unclear how to do it. I am able to set properties for all of my source files that need specific precompiled headers. However, by setting the "properties", I mean adding command line parameters to the com

Re: [CMake] Question about Windows support.

2006-06-05 Thread Sylvain Benner
> SET(CMAKE_SUPPRESS_REGENERATION TRUE)> will do the same thing but without having to modifiy the source of cmake.   I tried it and it works great. It is just needed to add the source file manually if CMAKE_SUPPRESS_REGENERATION is set.   IF(CMAKE_SUPPRESS_REGENERATION)     LIST(APPEND TARGET

Re: Re: [CMake] Assembler files

2006-06-05 Thread Alexander Neundorf
>  Original-Nachricht > Datum: Wed, 31 May 2006 18:04:27 -0400 > Von: Brad King <[EMAIL PROTECTED]> > An: James Mansion <[EMAIL PROTECTED]> > Betreff: Re: [CMake] Assembler files >  > James Mansion wrote: > > I'd like to create a library from a mix of > > assembler and C files. >

Re: Re: [CMake] make in a subdir takes ages.

2006-06-05 Thread Alexander Neundorf
Hi, > Von: Thomas Zander <[EMAIL PROTECTED]> >  > On Friday 26 May 2006 17:27, Brad King wrote: > > > Doesn't seem to work here on my 2.4-p2 > > > > Try it in the top level instead of the subdir.  It looks like those > > shortcut targets were left out of the subdirs.  We'll fix it. > > Cool; > >

Re: [CMake] Question about Windows support.

2006-06-05 Thread Sylvain Benner
Great, thank you Bill ! - Original Message - From: "William A. Hoffman" <[EMAIL PROTECTED]> To: "Sylvain Benner" <[EMAIL PROTECTED]>; "David Cole" <[EMAIL PROTECTED]> Cc: Sent: Monday, June 05, 2006 3:25 PM Subject: Re: [CMake] Question about Windows support. At 08:31 AM 6/5/2006,

Re: [CMake] Question about Windows support.

2006-06-05 Thread William A. Hoffman
At 08:31 AM 6/5/2006, Sylvain Benner wrote: >I wrote a custom generator to do this. You must get the source files from the >CVS. > >(1) You can disable the custom build rules by redefining : >void cmLocalVisualStudio7GeneratorMP::AddVCProjBuildRule(cmTarget& tgt) > SET(CMAKE_SUPPRESS_REGENERATI

Re: [CMake] Question about Windows support.

2006-06-05 Thread Sylvain Benner
I wrote a custom generator to do this. You must get the source files from the CVS.   (1) You can disable the custom build rules by redefining : void cmLocalVisualStudio7GeneratorMP::AddVCProjBuildRule(cmTarget& tgt)   (2) For the source control part, a variable is set in our low-level CMake

Re: [CMake] Question about Windows support.

2006-06-05 Thread David Cole
How did you (1) disable the custom build rules for the CMakeLists.txt files and (2) add source control...? Do you do it by hand after running CMake or do you have a script that does it? Would you mind posting specific answers back to the list so that other Visual Studio users can benefit from y

Re: [CMake] Question about Windows support.

2006-06-05 Thread Sylvain Benner
I've posted a way to handle precompiled headers the 1st June. You should find it if you browse for the threads of june 2006, the name of the thread is "Precompiled Headers". I don't know if it's a good way to handle it but my main concern was to do a CMakeLists.txt that is friendly to edit, quic