Re: [CMake] Is CMake powerful enough?

2007-06-08 Thread Oliver Kullmann
 find a python
interpreter,
 /usr/sfw/bin/python
bash: /usr/sfw/bin/python: No such file or directory

I just get 

MYVAR =
ERROR =
 echo $?
0

No error? (Apparently error output didn't work?)

I know, it's always possible to write such scripts, but
it's quite some work to make it work under many circumstances.
But I guess writing all kinds of subroutines should be much
easier in cmake than in make.

Thanks Eric!

--

Gonzalo Garramuño wrote:

 CMake provides FILE( GLOB ...) and similar
 constructs to do what you want.

Should suffice for most tasks.

Regarding the question of power, I'll have to make my own
experiences, but good to hear that it works for you.

 I am attaching a simple 'mk' bash script I use to run cmake (and normal
 makefiles) in a cross-platform way (and to simplify the creating of
 out-of-source builds) and a simple optional FindBuildDir.cmake that,
 optionally, works with it.
 I think you'll find that useful in understanding how cmake can be made
 to work for a large project.

Interesting; never seen that usage()-syntax?!? I see, something to learn.
I'll guess I'll definitely make use of your script!

I don't understand the role of FindBuildDir.cmake? How do you use it?
It appears to be a macro collection, plus some code which gets
executed (but when and how)?

The division of work between the master script and cmake needs to
be figured out, but the main idea seems to me that the master script
is just there to call the right cmake or make, and to provide it
just with the necessary parameters.

Thanks Gonzalo!

-

Brandon Van Every wrote:


 No guarantees that it'll keep working, so thanks for reminding me to
 make a feature request in the bug tracker.

Let's hope the best!

-

Puuh; so well, then it seems clear what to do; only somebody
needed for the job (whoops, that seems to be me).

Thanks a lot for all the input! It will now take a while,
but I guess sooner or later you will see me again on this
list.

Oliver


-- 
Dr. Oliver Kullmann
Computer Science Department
University of Wales Swansea
Faraday Building, Singleton Park
Swansea SA2 8PP, UK
http://cs-svr1.swan.ac.uk/~csoliver/

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


[CMake] Is CMake powerful enough?

2007-06-07 Thread Oliver Kullmann
, but more of a convenient user-interface, with
the typical trade-off: What the user-interface does, it does convenient and 
well,
but what it not does is very hard to integrate?

--

We would be thankful for any comments!

Oliver

-- 
Dr. Oliver Kullmann
Computer Science Department
University of Wales Swansea
Faraday Building, Singleton Park
Swansea SA2 8PP, UK
http://cs-svr1.swan.ac.uk/~csoliver/

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


[CMake] what to download for Linux??

2007-06-04 Thread Oliver Kullmann
Hello,  

I want to build cmake from the sources, on
a Linux platform. Now it seems I have the choice
between

cmake-2.4.6-Linux-i386.tar.gz

and

cmake-2.4.6.tar.gz

??

Intuitively, I would go for the second choice
(called Unix Linefeed Source, where I have
no clue what the Linefeed stands for), since
Unix normally includes Linux, and a generic name
like cmake-2.4.6.tar.gz is similar to for example
the gcc- or doxygen-packages-names.

However what then is that Linux-package good for??
I know that i386 stands for some architecture,
but I don't know whether my platforms are such or not,
and I also expect the build process to find out
on its own, without me having to specify this
implementation detail?? (When building gcc, or, say,
make, it does not bother the user with such details.)

I have purchased the book, but neither there nor on
the web page anything is said about which package
to use when (just follow the instructions, but there
are none). I couldn't make good use of the search functions
for the e-mail lists neither (always end up with some
google search).

Any hint would be appreciated.

Thanks

Oliver

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake