[CMake] Howto get list of targets and their source files?

2006-12-29 Thread Enrico Scholz
Hello, how can I get the list of targets and their source files? Can GET_TARGET_PROPERTY() be used for it? I need this for a 'make dist' like functionality which puts all used source files into a tarball. Enrico pgpgzfQpGG2x6.pgp Description: PGP signature

Re: [CMake] Howto get list of targets and their source files?

2006-12-29 Thread Bill Hoffman
Enrico Scholz wrote: Hello, how can I get the list of targets and their source files? Can GET_TARGET_PROPERTY() be used for it? I need this for a 'make dist' like functionality which puts all used source files into a tarball. Currently, there is no way to do this. It would most likely have

Re: [CMake] Mixing c and c++ with MinGW

2006-12-29 Thread Werner Smekal
Hi Bill, thanks a lot, that is what I needed. Regards, Werner Bill Hoffman wrote: Werner Smekal wrote: Hi, it is normally possible to mix c and c++ in a project with the GNU compiler. Normally you compile c files with gcc and c++ files with g++ and than link all together with g++. In

[CMake] Why does find_library prefer xxx.dll

2006-12-29 Thread Werner Smekal
Hi, I use find_library() to check if a library exists. If the libxxx.dll and the libxxx.a files are in the same directory, find_library() returns libxxx.dll - but I can't link against this library (windows case). I could regex replace the dll with the the correct suffix, but is there a way

Re: [CMake] Why does find_library prefer xxx.dll

2006-12-29 Thread Bill Hoffman
Werner Smekal wrote: Hi, I use find_library() to check if a library exists. If the libxxx.dll and the libxxx.a files are in the same directory, find_library() returns libxxx.dll - but I can't link against this library (windows case). I could regex replace the dll with the the correct

Re: [CMake] Why does find_library prefer xxx.dll

2006-12-29 Thread Alan W. Irwin
On 2006-12-29 17:13+0100 Werner Smekal wrote: Hi, I use find_library() to check if a library exists. If the libxxx.dll and the libxxx.a files are in the same directory, find_library() returns libxxx.dll - but I can't link against this library (windows case). I could regex replace the dll

[CMake] [ANN] 'make dist(check)' support

2006-12-29 Thread Enrico Scholz
Hello, I wrote a small module which adds support for 'make dist' and 'make distcheck'. It is available at http://ensc.de/cmake/FindMakeDist.cmake There are the following limitations: * works probably only with the 'make' generator * requires at least a SUSv3/POSIX compliant

Re: [CMake] [ANN] 'make dist(check)' support

2006-12-29 Thread Alan W. Irwin
Enrico wrote: Due to the last item, these targets are not so powerful and easy to use like their 'automake' counterparts. But they are an huge improvement to the current situation where there is nearly no support for creating source tarballs. In fact it is easy to create source distribution

[CMake] Re: [ANN] 'make dist(check)' support

2006-12-29 Thread Enrico Scholz
Alan W. Irwin [EMAIL PROTECTED] writes: Due to the last item, these targets are not so powerful and easy to use like their 'automake' counterparts. But they are an huge improvement to the current situation where there is nearly no support for creating source tarballs. In fact it is easy to