Re: [CMake] File Globbing

2006-10-26 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 i

RE: [CMake] File Globbing

2006-10-26 Thread Matthew Campbell
Ah, that's perfect. Thanks. I was thinking that the CMake glob function would get a list of files and run the a regular expression over the list. But the method you suggested is great. Thanks! -Matt -Original Message- From: Tristan Carel [mailto:[EMAIL PROTECTED] Sent: Thursday, October

Re: [CMake] File Globbing

2006-10-26 Thread Tristan Carel
On 10/26/06, Matthew Campbell <[EMAIL PROTECTED]> wrote: Hey guys, So to warn you, this is really more of a regular expression question than a cmake question but since the problem is in a cmake script I thought you guys may cut me some slack. J In any case, I have a situation where my sou

[CMake] File Globbing

2006-10-26 Thread Matthew Campbell
Hey guys,   So to warn you, this is really more of a regular _expression_ question than a cmake question but since the problem is in a cmake script I thought you guys may cut me some slack. J  In any case, I have a situation where my source directory contains the following:   Something.

Re: [CMake] A fortran 95 module dependency issue with CMake-2.4.3

2006-10-26 Thread Alan W. Irwin
On 2006-10-26 15:38-0700 Alan W. Irwin wrote: This is an edited version of a previous post I made on the subject of the fortran 95 module dependency issue with CMake-2.4.3. However, my previous post was buried in another thread (in early September) and got no response so I will try again. I h

[CMake] A fortran 95 module dependency issue with CMake-2.4.3

2006-10-26 Thread Alan W. Irwin
This is an edited version of a previous post I made on the subject of the fortran 95 module dependency issue with CMake-2.4.3. However, my previous post was buried in another thread (in early September) and got no response so I will try again. Here are three files in a test source tree that cons

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

2006-10-26 Thread Alan W. Irwin
On 2006-10-26 14:15-0700 Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote: Thank You for the suggestion. Your interpretation is right but there is a catch to it. There is another module that gets in the way. The "private module designed for one project" is zlibConfig.cmake. CM

[CMake] ADD_CUSTOM_COMMAND in different CMakeLists.txt

2006-10-26 Thread Maik Beckmann
Hello! I' got a little problem which I like do describe. Given the structure... Project_dir: - file: main_dummy.ccg - file: CMakeLists.txt - dir: mydir mydir: - file: CMakeLists.txt ---

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

2006-10-26 Thread Tristan Carel
On 10/26/06, Brad King <[EMAIL PROTECTED]> wrote: Tristan Carel wrote: That looks pretty nice. Here are a few comments: 1.) Please change EXEC_PROGRAM to EXECUTE_PROCESS. Done. You can use the new OUTPUT_STRIP_TRAILING_WHITESPACE option in CVS CMake's EXECUTE_PROCESS to avoid extra newlin

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

2006-10-26 Thread Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA
Thank You for the suggestion. Your interpretation is right but there is a catch to it. There is another module that gets in the way. The "private module designed for one project" is zlibConfig.cmake. CMake distribution comes with a module Findzlib.cmake. When another project calls F

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

2006-10-26 Thread Alan W. Irwin
Sounds like CMAKE_MODULE_PATH suggested by Alan wouldn't do the trick. An obvious interpretation of your question (which I have just re-read) is "how could I use a private module designed for one project in another project?" If that interpretation of your question is correct, then simply

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

2006-10-26 Thread Brad King
Tristan Carel wrote: > RC1 in attachment. That looks pretty nice. Here are a few comments: 1.) Please change EXEC_PROGRAM to EXECUTE_PROCESS. You can use the new OUTPUT_STRIP_TRAILING_WHITESPACE option in CVS CMake's EXECUTE_PROCESS to avoid extra newlines. Since the module will not be distrib

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

2006-10-26 Thread Tristan Carel
On 10/26/06, Brad King <[EMAIL PROTECTED]> wrote: Tristan Carel wrote: > In Modules/readme.txt, in the list of variables to provide, I can read: [...] > FindSubversion.cmake -> capitalized > vs > IF(SUBVERSION_FOUND) -> uppercased [...] For a while I was arguming that the case-ness should

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

2006-10-26 Thread Brad King
Tristan Carel wrote: > In Modules/readme.txt, in the list of variables to provide, I can read: > --- > XXX_EXECUTABLE Where to find the XXX tool. > XXX_YYY_EXECUTABLE Where to find the YYY tool that comes with XXX. > --- > > Subversion is a set o

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

2006-10-26 Thread Tristan Carel
On 10/26/06, Brad King <[EMAIL PROTECTED]> wrote: Tristan Carel wrote: > To use it: > ### Extract information from the current subversion working copy > INCLUDE(UseSubversion.cmake) > IF(SUBVERSION_SVN_FOUND) > SUBVERSION_REPOSITORY(${PROJECT_SOURCE_DIR}) > ENDIF(SUBVERSION_SVN_FOUND) This look

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

2006-10-26 Thread Brad King
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote: > Sounds like CMAKE_MODULE_PATH suggested by Alan > wouldn't do the trick. > Will this change make it for CMake 2.4.4? I'm not sure about 2.4.4. You can check the documentation of the FIND_PACKAGE command when it comes out. It wil

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

2006-10-26 Thread Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA
Sounds like CMAKE_MODULE_PATH suggested by Alan wouldn't do the trick. Will this change make it for CMake 2.4.4? Thank You. -- Artur Kedzierski, JF33 Voice (951) 273-5069, DSN 933-5069, Fax (951) 273-5201 -Original Message- From: Brad King [mailto:[EMAIL PROTECTED

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

2006-10-26 Thread Brad King
Tristan Carel wrote: > To use it: > ### Extract information from the current subversion working copy > INCLUDE(UseSubversion.cmake) > IF(SUBVERSION_SVN_FOUND) > SUBVERSION_REPOSITORY(${PROJECT_SOURCE_DIR}) > ENDIF(SUBVERSION_SVN_FOUND) This looks like a nice module. You should be able to convert

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

2006-10-26 Thread Brad King
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote: > On Windows side, I built a zlib library and created > a zlibConfig.cmake to go with it. The zlibConfig.cmake > contains the zlib_DEFINITIONS, zlib_LIBRARIES, zlib_INCLUDE_DIRS > so I don't have to worry > Now, in another project that use

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

2006-10-26 Thread Tristan Carel
Hi CMake lovers, svn:keywords file property is a useful subversion feature because you can benefit in your source files the precious information known by subversion about your project. These information are filled and maintained automagically by subversion. (details here http://svnbook.red-bean.

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

2006-10-26 Thread Mathieu Malaterre
are there repositories of CMake projects for common usage libraries such as zlib, jpeg,tiff I did (the full) JPEG : http://sourceforge.net/projects/jpeg I guess you are only looking for the 8bits lossy one, so feel free to add option for that. Patch welcome :) HTH Mathieu __

Re: [CMake] INSTALL files

2006-10-26 Thread Brad King
Gregor Berginc wrote: > I am writting cmake file to build library libVisionComponents that > includes sources from subdirectories (each subdir is different > component). In the main cmake file, sources and headers are listed as > ComponentName/File.cpp. The library is compiled successfully, but whe

Re: [CMake] Specifying out of source build directory from command line

2006-10-26 Thread Alan W. Irwin
On 2006-10-26 09:40+0200 Eric Noulard wrote: 2006/10/26, Martin Lütken <[EMAIL PROTECTED]>: How can I specify the build directory from the cmake command line client? I can do it from within the GUI, but have not been able to get cmake to create it's "make-files" in other directories than the

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

2006-10-26 Thread Bill Hoffman
Doug Henry wrote: I have not seen a repo for cmake files like that, but I have a feeling there are cmake build files for zlib, png, etc in the VTK source (vtk.org ). Another thing for people to do, is to request that the maintainers of zlib, png, etc, add CMakeLists.txt files to

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

2006-10-26 Thread Doug Henry
I have not seen a repo for cmake files like that, but I have a feeling there are cmake build files for zlib, png, etc in the VTK source (vtk.org).On 10/25/06, Luigi Calori <[EMAIL PROTECTED]> wrote: Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote:>   Hi,>>   On Windows side, I built a

Re: [CMake] ADD_DEFINITION for just one executable, one specific config

2006-10-26 Thread Alexander Neundorf
Hi, Von: "Stefanos Carlström" <[EMAIL PROTECTED]> > How do I do to add a definition for just one of the executables in a > CMakeLists.txt-file and > only for one of its configs? > > I want to define DEBUG for foo.exe but not for bar.exe, and I want DEBUG > only to be set for > the Debug configur

Re: [CMake] Specifying out of source build directory from command line

2006-10-26 Thread Eric Noulard
2006/10/26, Martin Lütken <[EMAIL PROTECTED]>: How can I specify the build directory from the cmake command line client? I can do it from within the GUI, but have not been able to get cmake to create it's "make-files" in other directories than the default, which is at the source root. In fact

[CMake] Specifying out of source build directory from command line

2006-10-26 Thread Martin Lütken
How can I specify the build directory from the cmake command line client? I can do it from within the GUI, but have not been able to get cmake to create it's "make-files" in other directories than the default, which is at the source root.   -Regards Martin ___

Re: [CMake] Strange options for Sun Studio compiler

2006-10-26 Thread Arjen Markus
Doug Henry wrote: The sun compilers also have aliases: suncc, sunCC, sunf95, etc. Maybe those names should be used instead? I assume this is as easy as making a Linux-sunCC.cmake file. Will that not get you in trouble with filesystems like Windows' that do not consider the case to be disti