RE: [CMake] How to specify default build dir in CMakeLists.txt?

2006-09-18 Thread Arjen Markus
> Hi, > > The goal is to have an out-of-source build by default. > The target is a programmer who compiles my package just > to get the libraries needed for another project. He would > have one less option to worry about, especially, if > he wasn't familiar with CMake. It is not exactl

RE: [CMake] How to specify default build dir in CMakeLists.txt?

2006-09-18 Thread Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA
It would be something like: ${CMAKE_SOURCE_DIR)/build In other words it would be a subdirectory of the top-level source dir. Yes, it would be annoying if the default was set to 'c:\' or '/tmp/'. However, it is safe to assume that if the user can compile source in '/some/di

Re: [CMake] How to specify default build dir in CMakeLists.txt?

2006-09-18 Thread Brandon J. Van Every
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote: The goal is to have an out-of-source build by default. That means you'd have to pick an out-of-source directory for the user. What do you imagine would be a non-annoying choice? Do you have enough knowledge of the user's system

[CMake] Using CPACK to generate RPM

2006-09-18 Thread Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA
Hi, I am sorry to bomb the mailing list with all my questions. However, CMake is pretty exciting and my group is very likely to migrate to it. I found a link that mentions that CPACK can generate an RPM: http://wiki.na-mic.org/Wiki/index.php/2006_Annual_Scientific_

Re: [CMake] elseif request

2006-09-18 Thread Phillip Hellewell
On 9/16/06, Filipe Sousa <[EMAIL PROTECTED]> wrote: Not anymore. You can doSET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS 1)IF(cond1)ELSE()ENDIF()Wow, I never knew about that option.I think adding adding an ELSEIF extension should not be a high priority, since the same thing can be accomplished with existin

RE: [CMake] How to specify default build dir in CMakeLists.txt?

2006-09-18 Thread Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA
Hi, The goal is to have an out-of-source build by default. The target is a programmer who compiles my package just to get the libraries needed for another project. He would have one less option to worry about, especially, if he wasn't familiar with CMake. That programmer would be a

Re: [CMake] How to specify default build dir in CMakeLists.txt?

2006-09-18 Thread Brandon J. Van Every
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote: Hi, I am pretty new to CMake. Is there a way to specify a default build dir in CMakeLists.txt? What are you really trying to prevent from happening? Are you just trying to get all your *.o files to appear in a particular place,

Re: [CMake] elseif request

2006-09-18 Thread Brandon J. Van Every
David C Thompson wrote: What if you named the construct something other than ELSEIF? For instance: ONEOF( LABEL ) CONDITION( cond_1 ) statements here if cond_1 is true OR_CONDITION( cond_2 ) statements here if cond_1 is false and cond_2 is true ... (more OR_CONDITION st

Re: [CMake] elseif request

2006-09-18 Thread Brandon J. Van Every
Alan W. Irwin wrote: On 2006-09-17 20:27-0700 Brandon J. Van Every wrote: ... some rhetorical questions trying to convince me (and I guess others) that I should not use CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS. I just don't think you value the social build engineering aspects of this particular lang

[CMake] 3rd party modules

2006-09-18 Thread Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA
Hi, Some packages provide modules/programs that provide information where they were installed. For example, "FooLibrary" may provide FooLibrary.m4 for auto-tools, FooLibrary.pc for pkg-confing, or Foo-config for anything else. As an author of a library, should I start prov

Re: [CMake] elseif request

2006-09-18 Thread Alan W. Irwin
On 2006-09-18 15:33-0700 David C Thompson wrote: What if you named the construct something other than ELSEIF? For instance: ONEOF( LABEL ) CONDITION( cond_1 ) statements here if cond_1 is true OR_CONDITION( cond_2 ) statements here if cond_1 is false and cond_2 is true ... (

Re: [CMake] elseif request

2006-09-18 Thread David C Thompson
Brad King wrote: > Alan W. Irwin wrote: > > So far all but one of those who responded to the discussion are in support > > of the idea, but it is also fair to say that only a handful of subscribers > > to this list have responded yet. > > > > I am particularly interested in the opinion of Bill Hof

Re: [CMake] How to specify default build dir in CMakeLists.txt?

2006-09-18 Thread Brad King
Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA wrote: > I am pretty new to CMake. Is there a way to specify a > default build dir in CMakeLists.txt? The build directory is always a user selection. There can be more than one build tree per source tree so trying to turn an in-source invocatio

Re: [CMake] Make a Find"lib" generic

2006-09-18 Thread Brad King
Xavier Larrode wrote: > I have done lots of FindPackage (for linux) for Ogre, Cegui, GLADE2 > etc... And i would like to make it generic. [snip] > So the question is, how to provide an argument to an INCLUDE (file) and > use it You can just set a variable before the INCLUDE command. However you s

Re: [CMake] exclude directories from dependency scanning ?

2006-09-18 Thread Brad King
Alexander Neundorf wrote: > I'd like to exclude some files from being scanned for dependencies, i.e. all > files which have ecos/install/include/ as part of their path. > I found CMAKE_C_INCLUDE_SCAN_REGEX, but I don't think I can use it for > excluding directories, or is there a way to do this ?

Re: [CMake] elseif request

2006-09-18 Thread Alan W. Irwin
On 2006-09-18 10:24-0400 Brad King wrote: This is a reasonable request. I'll have to discuss it with the other developers but it is at least worth putting in the bug tracker. Please put in the request. At least then the final discussion will be documented in an easy-to-reference place. I am

[CMake] How to specify default build dir in CMakeLists.txt?

2006-09-18 Thread Kedzierski, Artur CIV NAVSURFWARCENDIV CORONA
Hi, I am pretty new to CMake. Is there a way to specify a default build dir in CMakeLists.txt? Something like: CMAKE_BUILD_DIR(./build) or CMAKE_BUILD_DIR($SRC_DIR/build) which would be equivalent to: mkdir build ../ccmake That should be portable as well. For exam

[CMake] exclude directories from dependency scanning ?

2006-09-18 Thread Alexander Neundorf
Hi, I'd like to exclude some files from being scanned for dependencies, i.e. all files which have ecos/install/include/ as part of their path. I found CMAKE_C_INCLUDE_SCAN_REGEX, but I don't think I can use it for excluding directories, or is there a way to do this ? Thanks Alex -- "Feel free

[CMake] Make a Find"lib" generic

2006-09-18 Thread Xavier Larrode
Hi all, I have done lots of FindPackage (for linux) for Ogre, Cegui, GLADE2 etc... And i would like to make it generic. For now, i juste make a "query replace" from libglade-2.0 for instance to OGRE and i would like to make it better. Here is an example of my code with REGEX wich separate a

Re: [CMake] HDF5 Build files

2006-09-18 Thread Mike Jackson
On 9/18/06 10:32 AM, "Brad King" <[EMAIL PROTECTED]> wrote: > Mike Jackson wrote: >> Has anyone created an HDF5 cmake build script for the HDF5 1.6.5 >> distribution? >> >> I took the cmake file from the XMDF project and put in the sources for the >> HDF5 1.6.5 project and tried to build but got

Re: [CMake] HDF5 Build files

2006-09-18 Thread Brad King
Mike Jackson wrote: > Has anyone created an HDF5 cmake build script for the HDF5 1.6.5 > distribution? > > I took the cmake file from the XMDF project and put in the sources for the > HDF5 1.6.5 project and tried to build but got some link errors. I am > assuming that I _all_ the sources didn't ne

Re: [CMake] post-installation tests

2006-09-18 Thread Brad King
Brandon J. Van Every wrote: > I'm going up the Dart / CTest learning curve. How am I supposed to > implement tests that depend on my project already being installed? > Doing what I thought would be obvious, I found a way to crash > CMakeSetup. I've reported this as bug #3779. > ADD_DEPENDENCIES

Re: [CMake] elseif request

2006-09-18 Thread Brad King
Alan W. Irwin wrote: > So far all but one of those who responded to the discussion are in support > of the idea, but it is also fair to say that only a handful of subscribers > to this list have responded yet. > > I am particularly interested in the opinion of Bill Hoffman, Brad King, and > other

[CMake] HDF5 Build files

2006-09-18 Thread Mike Jackson
Has anyone created an HDF5 cmake build script for the HDF5 1.6.5 distribution? I took the cmake file from the XMDF project and put in the sources for the HDF5 1.6.5 project and tried to build but got some link errors. I am assuming that I _all_ the sources didn't need to go in but I am unsure whic

Re: [CMake] The CMake build system for PLplot is now essentially complete

2006-09-18 Thread David Cole
You guys should add yourselves to the list of projects using CMake on the CMake Wiki: http://www.cmake.org/Wiki/CMake_Projects Thanks for sharing your story here... - David Alan W. Irwin wrote: I am happy to report that the PLplot developers have essentially completed their new CMake Build

Re: [CMake] elseif request

2006-09-18 Thread John Biddiscombe
principal topic which is whether "elseif" should be implemented for CMake or not. I'd like to vote in favour of an ELSEIF construct JB -- John Biddiscombe,email:biddisco @ cscs.ch http://www.cscs.ch/about/BJohn.php CSCS, Swiss National Supercomputing Centre | Tel

Re: [CMake] elseif request

2006-09-18 Thread Alan W. Irwin
On 2006-09-17 20:27-0700 Brandon J. Van Every wrote: ... some rhetorical questions trying to convince me (and I guess others) that I should not use CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS. Regardless of such argumentation, the basic point remains, CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS is already in the CM