[CMake] Re: CMake, CPack, RPM

2007-10-10 Thread Eric Noulard
2007/10/10, kent williams <[EMAIL PROTECTED]>: > OK, so... if I use the built in RPM generator it will generate an RPM. > It isn't clear to me what ends up in that RPM aside from the files in > the manifest -- no dependencies seem to be mentioned. That's almost true. RPM generator cannot guess yo

Re: [CMake] adding dependencies on all targets to force CMake to rerun itself

2007-10-10 Thread Philip Lowman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alan W. Irwin wrote: > On 2007-10-10 12:40-0400 Philip Lowman wrote: >> Basically I have something like this but I want all targets in the build >> to depend on changes to foo.txt so that CMake runs itself again. >> >> MACRO(Foo) >> FILE(READ ${PRO

[CMake] Re: CMake, CPack, RPM

2007-10-10 Thread kent williams
OK, so... if I use the built in RPM generator it will generate an RPM. It isn't clear to me what ends up in that RPM aside from the files in the manifest -- no dependencies seem to be mentioned. Using UseRPMTools.cmake to try and generate a source RPM doesn't work so hot. You can only make a sour

Re: [CMake] adding dependencies on all targets to force CMake to rerun itself

2007-10-10 Thread Alan W. Irwin
On 2007-10-10 12:40-0400 Philip Lowman wrote: Hi, I have a text file that is read in via a CMake macro that dynamically adjusts the include paths, preprocessor definitions, and link directives. CMake automatically rebuilds the code as needed which is wonderful. One issue I haven't solved yet

[CMake] How to compile java files using cmake?

2007-10-10 Thread Rakesh Kukkamalla
Hi, I am new to cmake and I am trying to compile java classes. I used ADD_LIBRARY with Java language support but the jar file created has many more unnecessary files apart from the class file. I can use ADD_CUSTOM_COMMAND and create the class files but I wonder if there is any better so

Re: [CMake] how broken is the RPM support?

2007-10-10 Thread Eric Noulard
2007/10/10, kent williams <[EMAIL PROTECTED]>: > I just installed the CVS CMake. There is a CPackRPM.cmake file in the > Modules directory, but it's not clear to me how to tell CPack I want > to generate an RPM, or a Source RPM. > > Anyone have any clues for me? I forgot to tell that CPack RPM an

Re: [CMake] how broken is the RPM support?

2007-10-10 Thread Eric Noulard
2007/10/10, kent williams <[EMAIL PROTECTED]>: > I just installed the CVS CMake. There is a CPackRPM.cmake file in the > Modules directory, but it's not clear to me how to tell CPack I want > to generate an RPM, or a Source RPM. If you want to tell CPack to generate RPM you should either: 1) Add

[CMake] how broken is the RPM support?

2007-10-10 Thread kent williams
I just installed the CVS CMake. There is a CPackRPM.cmake file in the Modules directory, but it's not clear to me how to tell CPack I want to generate an RPM, or a Source RPM. Anyone have any clues for me? ___ CMake mailing list CMake@cmake.org http://w

Re: [CMake] Getting CMake to run on OpenVMS

2007-10-10 Thread Alan Antonuk
Getting closer - got over what I think are most of the issues involving the HP C-RTL and the differences between Unix and OpenVMS pathnames. Two issues up next: 1. The OpenVMS version of the fork() syscall (a.k.a., vfork) doesn't have the same semantics as the Unix/Linux version of fork. The big

Re: [CMake] qmake to cmake

2007-10-10 Thread Marie-Christine Vallet
Brandon Van Every wrote: On 10/10/07, Ajay Divekar <[EMAIL PROTECTED]> wrote: Hello Experts, I found this ruby script on http://www.cmake.org/Wiki/CMake:ConvertFromQmake which helps in converting from qmake to cmake. Has anyone tried it and if so what has been there experience? Also befor

[CMake] purify targets

2007-10-10 Thread Juan Sanchez
Hello, Is it possible to build both purify and non purify targets by changing CMAKE_CXX_LINK_EXECUTABLE? Unfortunately the following example purify's both binaries. ADD_EXECUTABLE(hello helloworld.cc) SET (CMAKE_CXX_LINK_EXECUTABLE "purify -cache-dir=/tmp ${CMAKE_CXX_LINK_EXECUTABLE}") ADD_EXECU

[CMake] adding dependencies on all targets to force CMake to rerun itself

2007-10-10 Thread Philip Lowman
Hi, I have a text file that is read in via a CMake macro that dynamically adjusts the include paths, preprocessor definitions, and link directives. CMake automatically rebuilds the code as needed which is wonderful. One issue I haven't solved yet is modification of this text file doesn't force C

[CMake] Custom Command Target Pre_Link

2007-10-10 Thread alexander
Hi all, I have a problem with a custom command. This custom command should be called after all custom commands, so i decided to used the TARGET specific one with the option PRE_LINK. But when i run first cmake and then make, the custom command will not be build. I use Linux and the command whic

Re: [CMake] qmake to cmake

2007-10-10 Thread Brandon Van Every
On 10/10/07, Ajay Divekar <[EMAIL PROTECTED]> wrote: > Hello Experts, > > I found this ruby script on > > http://www.cmake.org/Wiki/CMake:ConvertFromQmake > > which helps in converting from qmake to cmake. Has anyone tried it and if > so what has been there experience? Also before I start if anyon

Re: [CMake] get the target name in add_custom_command

2007-10-10 Thread Brandon Van Every
On 10/9/07, Juan Sanchez <[EMAIL PROTECTED]> wrote: > In this example, the target name foo has a different OUTPUT_NAME. How > do I tell ADD_CUSTOM_COMMAND to use the real name of the target when I > try to use the copy command within? GET_TARGET_PROPERTY. Set a variable outside the ADD_CUSTOM_CO

[CMake] qmake to cmake

2007-10-10 Thread Ajay Divekar
Hello Experts, I found this ruby script on http://www.cmake.org/Wiki/CMake:ConvertFromQmake which helps in converting from qmake to cmake. Has anyone tried it and if so what has been there experience? Also before I start if anyone has any suggestion they are welcome. Regards, Aj __

[CMake] adding library

2007-10-10 Thread Javier Gonzalez
Hi all, Quick question: isn't it possible to create a target library and later specify the sources? (ADD_LIBRARY first and something like SET_TARGET_PROPERTIES(... SOURCES ...) later) or at least add to the sources. Javier ___ CMake mailing list CMake

Re: [CMake] How can I avoid the addition of Debug/Release to the link path?

2007-10-10 Thread Sylvain Benner
If it is something not being built by cmake, then a full path should be used, and cmake should do the right thing. LINK_DIRECTORIES should be used as a last resort. If the library does not exist at cmake run time, because it will be built by the cmake project, then it should work. If the