[CMake] Output directory for generated ui_Header.h from Header.ui

2009-04-02 Thread Ivan Chupahin
Hi,folks! My project uses Qt4 and i need to generate *.h files from *.ui files. For that i use QT4_WRAP_UI macro. But it generete *.h files in a derectory where CMake is running. Maybe exit some CMake variable for point an output directory for that generated files or some other tools?

Re: [CMake] how-to get cmake command line after running ccmake

2009-04-02 Thread Adolfo Rodríguez
If you do create this script, would you mind sharing it in this list?. I think it may come in handy to many of us at one time or another. Thanks in advance! Adolfo On Wed, Apr 1, 2009 at 11:06 PM, Darren Weber darren.weber.li...@gmail.comwrote: Yes, this is the feature that I'm looking for.

Re: [CMake] link_libraries() deprecated. Why?

2009-04-02 Thread Marcel Loose
Hi Philip, Thanks for your reply. Your solution is ok, but it looks a bit like a workaround for a feature that is missing, but was once there: link_libraries(). To me, it's not really clear why link_libraries() has been deprecated and, for example, include_directories() has not. IMHO, using

Re: [CMake] Xcode generator

2009-04-02 Thread Tobias Rudolph
On 2 Apr 2009, at 02:14, E. Wing wrote: As you can see, when a rebuild is done, the template gets copied to main.cpp which in turn is compiled and linked. This works great in Xcode. But, whenever I change the template, i.e. my CUDA sources, I have to run the build twice to make the changes

[CMake] Output directory for genereated ui_Header.h files

2009-04-02 Thread Ivan Chupahin
Hi,folks! My project uses Qt4 and i need to generate *.h files from *.ui files. For that i use QT4_WRAP_UI macro. But it generete *.h files in a derectory where CMake is running. Maybe exist some CMake variable for point an output directory for that generated files or some other tools?

Re: [CMake] Output directory for genereated ui_Header.h files

2009-04-02 Thread Andreas Pakulat
On 02.04.09 16:46:51, Ivan Chupahin wrote: Hi,folks! My project uses Qt4 and i need to generate *.h files from *.ui files. For that i use QT4_WRAP_UI macro. But it generete *.h files in a derectory where CMake is running. That is the correct place. All generated files should be in the build

[CMake] Win32: Find location of VS redistributable runtime files ?

2009-04-02 Thread Stephen Collyer
In the course of installation, I want to copy the redistributable C++ runtime libs directory from VS into my deliverable package. However, this should work with both VS8 and VS9. Could someone tell me how I can detect the build environment and locate the appropriate directory to do this ? For

Re: [CMake] link_libraries() deprecated. Why?

2009-04-02 Thread Philip Lowman
On Thu, Apr 2, 2009 at 4:03 AM, Marcel Loose lo...@astron.nl wrote: Hi Philip, Thanks for your reply. Your solution is ok, but it looks a bit like a workaround for a feature that is missing, but was once there: link_libraries(). To me, it's not really clear why link_libraries() has been

Re: [CMake] Win32: Find location of VS redistributable runtime files ?

2009-04-02 Thread Philip Lowman
On Thu, Apr 2, 2009 at 7:00 AM, Stephen Collyer scoll...@netspinner.co.ukwrote: In the course of installation, I want to copy the redistributable C++ runtime libs directory from VS into my deliverable package. However, this should work with both VS8 and VS9. Could someone tell me how I can

[CMake] Core dump after - Check for working C compiler on OS400 ( i5/OS PowerPC 32bit) with 2.6.2

2009-04-02 Thread Ulf Wendel
Hi, CMake 2.6.2 gives me a crash on OS/400 (i5/OS PowerPC 32bit): -- The C compiler identification is VisualAge -- The CXX compiler identification is VisualAge -- Check for working C compiler: /QOpenSys/vac600/usr/vacpp/bin/xlc_r terminate called after throwing an instance of 'std::logic_error'

Re: [CMake] Core dump after - Check for working C compiler on OS400 ( i5/OS PowerPC 32bit) with 2.6.2

2009-04-02 Thread Bill Hoffman
Ulf Wendel wrote: Hi, CMake 2.6.2 gives me a crash on OS/400 (i5/OS PowerPC 32bit): -- The C compiler identification is VisualAge -- The CXX compiler identification is VisualAge -- Check for working C compiler: /QOpenSys/vac600/usr/vacpp/bin/xlc_r terminate called after throwing an instance of

Re: [CMake] link_libraries() deprecated. Why?

2009-04-02 Thread Brad King
Alex, Looking at history I see this was deprecated by a patch you sent me. Originally we called the command 'discouraged'. Why did we change to 'deprecated'? Marcel Loose wrote: Thanks for your reply. Your solution is ok, but it looks a bit like a workaround for a feature that is missing, but

Re: [CMake] autoheader

2009-04-02 Thread BRM
Thanks for the clarifications. Perhaps my err in this discussion is by referencing the Find functions too generally, and early on too specifically... Philip Lowman wrote: 1. Just because you call find_package() on a package doesn't mean that you need a preprocessor definition in your code in

Re: [CMake] Win32: Find location of VS redistributable runtime files ?

2009-04-02 Thread Stephen Collyer
2009/4/2 Philip Lowman phi...@yhbt.com On Thu, Apr 2, 2009 at 7:00 AM, Stephen Collyer scoll...@netspinner.co.uk wrote: In the course of installation, I want to copy the redistributable C++ runtime libs directory from VS into my deliverable package. However, this should work with both

Re: [CMake] Core dump after - Check for working C compiler on OS400 ( i5/OS PowerPC 32bit) with 2.6.2

2009-04-02 Thread Ulf Wendel
Bill Hoffman schrieb: Ulf Wendel wrote: Hi, CMake 2.6.2 gives me a crash on OS/400 (i5/OS PowerPC 32bit): -- The C compiler identification is VisualAge -- The CXX compiler identification is VisualAge -- Check for working C compiler: /QOpenSys/vac600/usr/vacpp/bin/xlc_r terminate called after

Re: [CMake] cpack and PackageMaker

2009-04-02 Thread Bill Hoffman
Benne, Kyle wrote: Hello CMake Users, Quick question. Does CPack support pre and post flight scripts with the PackageMaker generator? Yes, it does, CMake uses this for installing the command line tools. SET(CPACK_POSTFLIGHT_SCRIPT @CMAKE_POSTFLIGHT_SCRIPT@)

Re: [CMake] Win32: Find location of VS redistributable runtime files ?

2009-04-02 Thread James Bigler
On Thu, Apr 2, 2009 at 7:49 AM, Stephen Collyer scoll...@netspinner.co.ukwrote: 2009/4/2 Philip Lowman phi...@yhbt.com On Thu, Apr 2, 2009 at 7:00 AM, Stephen Collyer scoll...@netspinner.co.uk wrote: In the course of installation, I want to copy the redistributable C++ runtime libs

[CMake] CMake could really use a debugger...

2009-04-02 Thread Robert Dailey
I can't tell you how hard it is to hunt down strange behavior in CMake. Often times I would save myself 30 minutes of time on each of the hard bug fixes if I could just step through each line of logic as it was being executed and view the values of variables in a watch window of some sort. Does

Re: [CMake] Win32: Find location of VS redistributable runtime files ?

2009-04-02 Thread Marcus D. Hanwell
James Bigler wrote: On Thu, Apr 2, 2009 at 7:49 AM, Stephen Collyer scoll...@netspinner.co.uk mailto:scoll...@netspinner.co.uk wrote: 2009/4/2 Philip Lowman phi...@yhbt.com mailto:phi...@yhbt.com On Thu, Apr 2, 2009 at 7:00 AM, Stephen Collyer scoll...@netspinner.co.uk

Re: [CMake] CMake could really use a debugger...

2009-04-02 Thread Bill Hoffman
Robert Dailey wrote: I can't tell you how hard it is to hunt down strange behavior in CMake. Often times I would save myself 30 minutes of time on each of the hard bug fixes if I could just step through each line of logic as it was being executed and view the values of variables in a watch

Re: [CMake] incrementally adding source file properties

2009-04-02 Thread Eric Noulard
2009/4/2 Bill O'Hara billtoh...@gmail.com: Is it possible to incrementally add new properties to source files? In two parts of a large build there are cases where it'd be very convenient to be able to do this: set_source_file_properties(foo.c PROPERTIES COMPILE_FLAGS -m32)

Re: [CMake] incrementally adding source file properties

2009-04-02 Thread Eric Noulard
2009/4/2 Eric Noulard eric.noul...@gmail.com: 2009/4/2 Bill O'Hara billtoh...@gmail.com: Is it possible to incrementally add new properties to source files? In two parts of a large build there are cases where it'd be very convenient to be able to do this: set_source_file_properties(foo.c

Re: [CMake] incrementally adding source file properties

2009-04-02 Thread Tobias Rudolph
On 2 Apr 2009, at 19:12, Bill O'Hara wrote: Is it possible to incrementally add new properties to source files? In two parts of a large build there are cases where it'd be very convenient to be able to do this: set_source_file_properties(foo.c PROPERTIES COMPILE_FLAGS -m32)

Re: [CMake] CMake could really use a debugger...

2009-04-02 Thread Robert Dailey
That's the thing that has the Returning to and Entering messages right? If it is, that's somewhat helpful but not anywhere near what I'm asking for. Think of how visual studio debugs C++ code. That's exactly the most optimal debugging method I would like to see for CMake. Here's a couple of

Re: [CMake] CMake could really use a debugger...

2009-04-02 Thread James Bigler
On Thu, Apr 2, 2009 at 11:51 AM, Robert Dailey rcdai...@gmail.com wrote: That's the thing that has the Returning to and Entering messages right? If it is, that's somewhat helpful but not anywhere near what I'm asking for. Think of how visual studio debugs C++ code. That's exactly the most

Re: [CMake] CMake could really use a debugger...

2009-04-02 Thread Robert Dailey
Good idea, but this requires domain knowledge. For someone completely unfamiliar with the CMake code-base, this would be impractical. However I still appreciate the thought! It would be great to see CMake provide some more debug-related commands later. Perhaps CMake could even implement its own

Re: [CMake] CMake could really use a debugger...

2009-04-02 Thread Jed Brown
On Thu 2009-04-02 13:17, Robert Dailey wrote: It would be great to see CMake provide some more debug-related commands later. Perhaps CMake could even implement its own prompt. It would be extremely useful to be able to set watchpoints and breakpoints. Basically the GDB commands break, watch,

[CMake] perennial question, how to setup environment for simple tests

2009-04-02 Thread Ian Monroe
I've seen this question in the archives, but I was wondering if there's been any progress since I last saw it asked (1 year ago). I have some unit tests. I need to run a command or two and set some environmental variables before all the tests start. Does CMake have a solution for this yet? Are

Re: [CMake] CMake could really use a debugger...

2009-04-02 Thread Robert Dailey
On Thu, Apr 2, 2009 at 1:38 PM, Jed Brown j...@59a2.org wrote: On Thu 2009-04-02 13:17, Robert Dailey wrote: It would be great to see CMake provide some more debug-related commands later. Perhaps CMake could even implement its own prompt. It would be extremely useful to be able to set

Re: [CMake] CMake could really use a debugger...

2009-04-02 Thread Sean McBride
On 4/2/09 2:49 PM, Robert Dailey said: What is GDB? Sorry, can't resist: http://lmgtfy.com/?q=GDB -- Sean McBride, B. Eng s...@rogue-research.com Rogue Researchwww.rogue-research.com Mac

Re: [CMake] CMake could really use a debugger...

2009-04-02 Thread Robert Dailey
haha, good one. I replied on an impulse. I didn't even think about googling it :) Thanks for the link ;) On Thu, Apr 2, 2009 at 2:55 PM, Sean McBride s...@rogue-research.comwrote: On 4/2/09 2:49 PM, Robert Dailey said: What is GDB? Sorry, can't resist: http://lmgtfy.com/?q=GDB --

Re: [CMake] Need advice for unit test structure

2009-04-02 Thread Daniel Blezek
Hi Robert, I don¹t have any suggestions about the compile time unit tests, but we¹ve been using the Google testing framework for the last 6 months and have been very happy with it. I wrote up some details related to ITK here:

Re: [CMake] How to pass values up to parent CMakeLists.txt

2009-04-02 Thread Alexander Neundorf
On Wednesday 01 April 2009, James Bigler wrote: ... You can also look into define/get/set_property, but I've never used those. Yes, I'd suggest a GLOBAL property for this. It's IMO the cleanest way to do it. Alex ___ Powered by www.kitware.com Visit

Re: [CMake] Need advice for unit test structure

2009-04-02 Thread Robert Dailey
If there was some way for CMake to utilize solution folders in Visual Studio, we could easily organize unit tests into a hierarchy. This way the solution explorer would not be cluttered and we'd still be able to have 1 project per unit test. On Thu, Apr 2, 2009 at 4:03 PM, Daniel Blezek

Re: [CMake] link_libraries() deprecated. Why?

2009-04-02 Thread Alexander Neundorf
On Thursday 02 April 2009, Brad King wrote: Alex, Looking at history I see this was deprecated by a patch you sent me. Originally we called the command 'discouraged'. Why did we change to 'deprecated'? I don't remember why we changed the wording. The deprecated commands are commands which

Re: [CMake] Output directory for generated ui_Header.h from Header.ui

2009-04-02 Thread Alexander Neundorf
On Thursday 02 April 2009, Ivan Chupahin wrote: Hi,folks! My project uses Qt4 and i need to generate *.h files from *.ui files. For that i use QT4_WRAP_UI macro. But it generete *.h files in a derectory where CMake is running. Maybe exit some CMake variable for point an output directory for

Re: [CMake] CMake could really use a debugger...

2009-04-02 Thread Alexander Neundorf
On Thursday 02 April 2009, Robert Dailey wrote: That's the thing that has the Returning to and Entering messages right? No, it prints every cmake line which is executed. Alex ___ Powered by www.kitware.com Visit other Kitware open-source projects at

[CMake] Disabling RTTI in a portable way

2009-04-02 Thread Robert Dailey
Is there a portable way of disabling Runtime Type Information (RTTI) through CMake? I hope I don't have to strangle CMake too much to get this basic functionality... ___ Powered by www.kitware.com Visit other Kitware open-source projects at

Re: [CMake] Need advice for unit test structure

2009-04-02 Thread Philip Lowman
On Thu, Apr 2, 2009 at 5:07 PM, Robert Dailey rcdai...@gmail.com wrote: If there was some way for CMake to utilize solution folders in Visual Studio, we could easily organize unit tests into a hierarchy. This way the solution explorer would not be cluttered and we'd still be able to have 1

Re: [CMake] Need advice for unit test structure

2009-04-02 Thread Michael Jackson
On Apr 2, 2009, at 11:04 PM, Philip Lowman wrote: On Thu, Apr 2, 2009 at 5:07 PM, Robert Dailey rcdai...@gmail.com wrote: If there was some way for CMake to utilize solution folders in Visual Studio, we could easily organize unit tests into a hierarchy. This way the solution explorer would

Re: [CMake] perennial question, how to setup environment for simple tests

2009-04-02 Thread Philip Lowman
On Thu, Apr 2, 2009 at 3:19 PM, Ian Monroe i...@monroe.nu wrote: I've seen this question in the archives, but I was wondering if there's been any progress since I last saw it asked (1 year ago). I have some unit tests. I need to run a command or two and set some environmental variables