Re: [CMake] File Globbing

2006-10-27 Thread Tristan Carel
On 10/26/06, Tristan Carel [EMAIL PROTECTED] wrote: On 10/26/06, Matthew Campbell [EMAIL PROTECTED] wrote: [...] [...] I don't see how to make 'globbing' patterns which can: - find .h and .cpp - find files which do NOT contain a specific pattern. I'm interesting if you see a way to do it.

[CMake] How to easily extract items from a list which match a regex?

2006-10-27 Thread Tristan Carel
Hi, To extract the list of headers in a set of source files contained in a variable, I don't see other solution than iterate on each element and check that the items match the regular expression: FILE(GLOB My_Sources *.*) # [...] FOREACH(item ${My_Sources}) STRING(REGEX MATCH .+\\.h?h$ item

[CMake] any arithmetic expansion?

2006-10-27 Thread Tristan Carel
Hi, Does CMake performs arithmetic expansion? Do we have to use an external tool? (like bc, or expr) I don't find anything about it on the bug tracker. I would be fantastic to be able to write something like this: SET(Foo 2) SET(Bar $EVAL{0x101000 + ${Foo}}) To avoid complexity growth of the

Re: [CMake] any arithmetic expansion?

2006-10-27 Thread Filipe Sousa
Tristan Carel wrote: Hi, Does CMake performs arithmetic expansion? Do we have to use an external tool? (like bc, or expr) I don't find anything about it on the bug tracker. I would be fantastic to be able to write something like this: SET(Foo 2) SET(Bar $EVAL{0x101000 + ${Foo}}) To

Re: [CMake] Telling CMake to use zlibConfig.cmake instead of the Findzlib.cmake

2006-10-27 Thread Doug Henry
I'm trying to follow this thread because it seems like it might be important to me, but I'm not sure I understand the root problem. The problem isn't finding zlib? The problem isn't using custom modules? I guess there is something special about the custom zlib module that cmake's module doesn't

Re: [CMake] Telling CMake to use zlibConfig.cmake instead of the Findzlib.cmake

2006-10-27 Thread Brad King
Alan W. Irwin wrote: I think the real problem here is the documentation of FIND_PACKAGE needs updating. [snip] The meaning of the phrase another project built by CMake is not clear. I cannot believe that is some arbitrary project somewhere on the net. Even if it is is another project built

Re: [CMake] How to easily extract items from a list which match a regex?

2006-10-27 Thread Brad King
Tristan Carel wrote: To extract the list of headers in a set of source files contained in a variable, I don't see other solution than iterate on each element and check that the items match the regular expression: You can submit a feature request for LIST(FILTER) here: http://www.cmake.org/Bug

Re: [CMake] ADD_CUSTOM_COMMAND in different CMakeLists.txt

2006-10-27 Thread Brad King
Maik Beckmann wrote: If I put the add_custom_command into Project_dir/mydir/CMakeLists.txt everything works fine. Is this a limitation of cmake? Yes. Custom commands are considered on a per-directory basis when looking for source files. Also note that your example command modifies the source

Re: [CMake] [SUBVERSION] Retrieve details of your working copy

2006-10-27 Thread Brad King
Tristan Carel wrote: now the RC2 That looks good. Thanks for making the changes. Please open a feature request here: http://www.cmake.org/Bug and attach the lateset revision of the file. Send me the bug number please. Then I'll do the final testing and integration into CMake upstream.

RE: [CMake] Telling CMake to use zlibConfig.cmake instead of the Findzlib.cmake

2006-10-27 Thread Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA
This is my understanding. Everybody, please correct me if I am wrong. There are two types of modules: nameConfig.cmake. and Findname.cmake A package (eg. library) providesnameConfig.cmake.The nameConfig.cmake advertises package's locations (where were its headers and libraries

RE: [CMake] Telling CMake to use zlibConfig.cmake instead of the Findzlib.cmake

2006-10-27 Thread Alan W. Irwin
On 2006-10-27 08:50-0700 Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote: This is my understanding. Everybody, please correct me if I am wrong. There are two types of modules: nameConfig.cmake. and Findname.cmake A package (eg. library) provides nameConfig.cmake. The

Re: [CMake] Telling CMake to use zlibConfig.cmake instead of the Findzlib.cmake

2006-10-27 Thread Brad King
Alan W. Irwin wrote: A module that gives header and library information for a package does sound most useful, and, in fact, we could use that kind of module for the PLplot project (especially if the module is automatically generated from the install information that CMake already has access