Re: [CMake] Ada and CMake

2007-02-25 Thread Alan W. Irwin
On 2007-02-25 22:36- Filipe Sousa wrote: Alan W. Irwin wrote: [...] Can somebody tell me how to arrange the above [Ada language support] modifications? In Modules directory there is a file with instructions on how to add a new language to cmake. http://public.kitware.com/cgi-bin/viewcv

Re: [CMake] Ada and CMake

2007-02-25 Thread Filipe Sousa
Alan W. Irwin wrote: On 2007-02-24 12:03-0800 Alan W. Irwin wrote: I have now learned that the GNAT compiler is simply and add-on to gcc, and in fact all the low-level compilations of Ada source in the GNAT case are done by gcc. Also, Ada keeps track of dependency issues for itself so the high

Re: [CMake] Ada and CMake

2007-02-25 Thread Alan W. Irwin
On 2007-02-24 12:03-0800 Alan W. Irwin wrote: I am a rank Ada beginner, but nevertheless somebody just donated an Ada interface to PLplot so I am trying to get on top of what changes to our CMake build system will be required to build and install an Ada project library interfacing Ada with the P

[CMake] Newbie question

2007-02-25 Thread Christian Convey
Thanks Alan. I went ahead an broke my project into a top-level CMake file, plus one for a subdirectory containing library code, and one for a subdirectory containing library-demo code. That seems to work so far, EXCEPT: when the path to the subdirectory includes a directory with a space in the

Re: [CMake] Newbie question

2007-02-25 Thread Alan W. Irwin
On 2007-02-25 13:34-0500 Christian Convey wrote: (Couldn't spot this in the docs - sorry if it's obvious...) I've got a project that involves a library, and several demo apps that use that library. - Is there a strong reason to avoid using a single CMake file to express the logic for building

[CMake] Newbie question

2007-02-25 Thread Christian Convey
(Couldn't spot this in the docs - sorry if it's obvious...) I've got a project that involves a library, and several demo apps that use that library. - Is there a strong reason to avoid using a single CMake file to express the logic for building the library and the apps? - How do I express the f

[CMake] Unable to link to static libraries on MacOS X

2007-02-25 Thread Thomas Christian Chust
Hello, part of the issues I had with creating and linking to libraries on MacOS X have been resolved with help from this list. But the most important problem remains. I'm using CMake 2.4.6 on a PowerPC iBook running MacOS X 10.4.8 and I can't get CMake to link against a static library if a dynami

Re: [CMake] Reading the content of a file

2007-02-25 Thread Filipe Sousa
Timo Rumland wrote: Hello, Have you tried CONFIGURE_FILE() ? You can use it to replace variables. CONFIGURE_FILE(myfile ${CMAKE_CURRENT_BINARY_DIR}/myfile-copy) I can use CONFIGURE_FILE to copy the file, but I have to edit the content of the file (that goes beyond just replacing VARS in the f

Re: [CMake] Re: Trouble with libraries on MacOS X

2007-02-25 Thread Thomas Christian Chust
Brandon J. Van Every wrote: > [...] > I just checked the file doc/cmake-2.4/cmake.html in > http://www.cmake.org/files/v2.4/cmake-2.4.6-Darwin-universal.tar.gz > and it correctly documents CLEAN_DIRECT_OUTPUT. > [...] I used the .dmg based installer instead of the tarball you examined. Although I

Re: [CMake] Reading the content of a file

2007-02-25 Thread Timo Rumland
Hello, > Have you tried CONFIGURE_FILE() ? You can use it to replace > variables. > CONFIGURE_FILE(myfile ${CMAKE_CURRENT_BINARY_DIR}/myfile-copy) I can use CONFIGURE_FILE to copy the file, but I have to edit the content of the file (that goes beyond just replacing VARS in the file). I must use

Re: [CMake] Reading the content of a file

2007-02-25 Thread Filipe Sousa
Timo Rumland wrote: Hello, what I must do is: 1. Read the content of a file 2. Modify the content (variable) 3. Write out the content into a new file Have you tried CONFIGURE_FILE() ? You can use it to replace variables. make version 2.5-20070219 CONFIGURE_FILE Copy a file to anoth

[CMake] Reading the content of a file

2007-02-25 Thread Timo Rumland
Hello, what I must do is: 1. Read the content of a file 2. Modify the content (variable) 3. Write out the content into a new file But when I read a file into a variable with file( READ ${filename} tmp_filecontent ) and then write it out with file( WRITE ${filename2} ${tmp_filecontent}