[CMake] Re: CMake, CPack, RPM

2007-10-11 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 your

[CMake] CTest results without submitting

2007-10-11 Thread Baptiste Derongs
Hello all, I am running a lot of tests with Ctest, and I would like to gather the results. However I do not want to send them to a Dart server (not really I do not want, but that is not the easiest way for me). So I made a CTestConfig.cmake with some weird commands that make Ctests -D unable to

[CMake] A nice fix for windows cl compilation (to support XBox360 for instance)

2007-10-11 Thread Josef Karthauser
Hey there, I've submitted a patch to the bug tracker, under number 0005865, for people who generate make/nmake files under Windows with the Microsoft compiler (cl.exe). The old behaviour was that the linker (link.exe) was picked up from the path at compile time. The new behaviour is that it is

[CMake] how to use classWizard

2007-10-11 Thread orientation f
Hello I make a vtk project sucessfully with CMake. But when I use ClassWizard menu, it told me that ***.clw doesn't exist, and the ClassWizard menu is blank after I select yes to build it from my project source. so how can I use ClassWizard successfully? thank you very much.

RE: [CMake] Turning a string into a list.

2007-10-11 Thread Josef Karthauser
Does anyone know how to turn a string, such as one;two;three into a list, so that I can enumerate the elements in a list? I want something like: SET(Q one;two;three) FOREACH(I TO_LIST(Q)) ... ENDFOREACH(). Ah, ignore me. Of course I just expand the

[CMake] Turning a string into a list.

2007-10-11 Thread Josef Karthauser
Does anyone know how to turn a string, such as one;two;three into a list, so that I can enumerate the elements in a list? I want something like: SET(Q one;two;three) FOREACH(I TO_LIST(Q)) ... ENDFOREACH(). Thanks, Joe

Re: [CMake] Turning a string into a list.

2007-10-11 Thread James Bigler
Try SEPARATE_ARGUMENTS. SET(Q one;two;three) SEPARATE_ARGUMENTS(Q) FOREACH(I ${Q}) MESSAGE(I = ${I}) ENDFOREACH(I) On Oct 11, 2007, at 6:42 AM, Josef Karthauser wrote: Does anyone know how to turn a string, such as one;two;three into a list, so that I can enumerate the elements in a list?

Re: [CMake] Turning a string into a list.

2007-10-11 Thread James Bigler
On Oct 11, 2007, at 6:42 AM, Josef Karthauser wrote: Does anyone know how to turn a string, such as one;two;three into a list, so that I can enumerate the elements in a list? I want something like: SET(Q one;two;three) FOREACH(I TO_LIST(Q)) ...

Re: [CMake] Turning a string into a list.

2007-10-11 Thread Sylvain Benner
Try SEPARATE_ARGUMENTS. SET(Q one;two;three) SEPARATE_ARGUMENTS(Q) FOREACH(I ${Q}) MESSAGE(I = ${I}) ENDFOREACH(I) SEPARATE_ARGUMENTS do the opposite, it converts a string to a list by replacing spaces with ; In the case of Josef, nothing needs to be done since its string has already

Re: [CMake] CTest results without submitting

2007-10-11 Thread kent williams
If you only want to see whether tests succeed or fail, then you just need to go to the build directory and type make test Or you can run ctest directly ctest If you want to see the output of your tests, then run ctest -V If you only care about one test ctest -R testname_regexp i.e. give a

Re: [CMake] Re: CMake, CPack, RPM

2007-10-11 Thread Eric Noulard
2007/10/11, kent williams [EMAIL PROTECTED]: Thanks for your prompt reply. To some extent you're answering questions that come from me being an RPM newbie. My problem with the Source RPM generation is that it requires that my system -- the one building the source RPM, doesn't have CMake

Re: [CMake] Re: CMake, CPack, RPM

2007-10-11 Thread kent williams
Thanks for your prompt reply. To some extent you're answering questions that come from me being an RPM newbie. My problem with the Source RPM generation is that it requires that my system -- the one building the source RPM, doesn't have CMake installed as an RPM.When I try and generate the

[CMake] Removing the first element from a list

2007-10-11 Thread Josef Karthauser
How does one go about removing the first element of a list? I want to make a state machine, something like: WHILE(${LISTVAR}) # Get command from first entry SHIFT(CMD ${LISTVAR}) # Get argument SHIFT(CMD ${LISTVAR}

Re: [CMake] Removing the first element from a list

2007-10-11 Thread Sylvain Benner
How does one go about removing the first element of a list Have a look to the LIST command, you'll have everything you need. LIST List operations. LIST(LENGTH list output variable) LIST(GET list element index [element index ...] output variable ) LIST(APPEND

[CMake] Generate Intel Compiler Project Files dire

2007-10-11 Thread Neumann, Jan (SCR US)
Hi, I was wondering if it is possible to use CMake to generate Visual Studio 2003 or 2005 project files that will use the Intel C++ compiler. Currently, I am generating first the Visual Studio project and then use the Intel Project Converter that is installed into Visual Studio to generate the

RE: [CMake] Removing the first element from a list

2007-10-11 Thread Josef Karthauser
-Original Message- From: Sylvain Benner [mailto:[EMAIL PROTECTED] Sent: 11 October 2007 16:16 To: Josef Karthauser Cc: cmake@cmake.org Subject: Re: [CMake] Removing the first element from a list How does one go about removing the first element of a list Have a look to the LIST

Re: [CMake] Removing the first element from a list

2007-10-11 Thread Sylvain Benner
But this doesn't? MACRO(SHIFT RESULT LISTVAR) LIST(GET LISTVAR 1 RESULT) LIST(REMOVE_AT LISTVAR 1) ENDMACRO(SHIFT) MACRO(TEST) SET(Q ${ARGN}) WHILE(${Q}) # Get the command SHIFT(CMD Q)

RE: [CMake] Removing the first element from a list

2007-10-11 Thread Josef Karthauser
How does one go about removing the first element of a list Have a look to the LIST command, you'll have everything you need. Fantastic. That's not described in the book :). Joe ___ CMake mailing list CMake@cmake.org

Re: [CMake] purify targets

2007-10-11 Thread Juan Sanchez
To clarify my question, should I expect changing CMAKE_CXX_LINK_EXECUTABLE to apply to both targets in the example below? This is cmake 2.4.7. Regards, Juan Juan Sanchez wrote: Hello, Is it possible to build both purify and non purify targets by changing CMAKE_CXX_LINK_EXECUTABLE?

RE: [CMake] Removing the first element from a list

2007-10-11 Thread Josef Karthauser
From: Sylvain Benner [mailto:[EMAIL PROTECTED] Sent: 11 October 2007 16:40 To: Josef Karthauser Cc: cmake@cmake.org Subject: Re: [CMake] Removing the first element from a list correction: MACRO(SHIFT RESULT LISTVAR) LIST(GET ${LISTVAR} 1 ${RESULT}) LIST(REMOVE_AT

[CMake] CPack MacOSX support

2007-10-11 Thread Félix C. Morency
Hi, 1. Is there any way to include 3rd party libraries in a generated bundle (.app) with CMake/CPack (.dmg) ? Currently, the 3rd party are out of the bundle and this is quite ungood since the bundle architecture provides resources support. Anyone ever done it before ? 2. The PackageMaker (.dmg)

Re: [CMake] Generate Intel Compiler Project Files dire

2007-10-11 Thread Marie-Christine Vallet
Neumann, Jan (SCR US) wrote: Hi, I was wondering if it is possible to use CMake to generate Visual Studio 2003 or 2005 project files that will use the Intel C++ compiler. Currently, I am generating first the Visual Studio project and then use the Intel Project Converter that is installed

[CMake] Cmake for Java

2007-10-11 Thread Rakesh Kukkamalla
Hi, Is ADD_CUSTOM_TARGET the best method to compile java files and create a jar? I tried ADD_LIBRARY with language enabled but the jar file that is being built has more files in it than just the class file. Any better solutions available?

Re: [CMake] CPack MacOSX support

2007-10-11 Thread David Cole
On 10/11/07, Félix C. Morency [EMAIL PROTECTED] wrote: 1. Is there any way to include 3rd party libraries in a generated bundle (.app) with CMake/CPack (.dmg) ? Currently, the 3rd party are out of the bundle and this is quite ungood since the bundle architecture provides resources support.

[CMake] CMake XCODE genarator for Fortran project. Bug?

2007-10-11 Thread Marie-Christine Vallet
hi, I tried to generate an xcode project file with a mixed fortran and c project, but I get an error messsage due to the fortran compiler, whatever compiler I use. If I generate the same for kdevelopp3, it works just fine, and if I get ride of the fortran part, it generates the file without

Re: [CMake] CPack MacOSX support

2007-10-11 Thread Mike Jackson
along these same lines, how is cmake handling the issue with paths in OS X libraries such as @executable_path/../Frameworks ? Simply copying the library inside the App bundle will not work most of the time. Is there any upcoming support to allow the setting of the rpath in generated

Re: [CMake] CPack MacOSX support

2007-10-11 Thread Félix C. Morency
For the mailing list: David, Thank you for you fast answer. 1. Yes, I actually want to copy some libOne.dylib directly into the bundle so all the required library can be into the .app bundle (at the same place the executable is) and not outside. Another way to say it would be that I want

Re: [CMake] CPack MacOSX support

2007-10-11 Thread David Cole
If the library is built by CMake, you can use the INSTALL_NAME_DIR property to achieve @executable_path or @loader_path relative references. This example comes from CMake/Tests/BundleTest/CMakeLists.txt: SET_TARGET_PROPERTIES(BundleTestLib PROPERTIES INSTALL_NAME_DIR

[CMake] Problem with to long path names on win32

2007-10-11 Thread Christian Ehrlicher
Hi, I currently can't compile kdebase/konqueror because the paths exceeds the max path length: D:\kde-msvc\tmp\kdebase-beta3-3.94.1.20071011\work\kdebase\apps\konqueror\sidebar\trees\konq_sidebartreetoplevelitem.cpp : fatal error C1083: Datei (vom Compiler generiert) kann nicht geöffnet werden:

Re: [CMake] make rebuild_cache vs. running cmake

2007-10-11 Thread a . neundorf-work
On Friday 28 September 2007 14:05, Joachim Ziegler wrote: Hello list, I wonder what the difference is between making the target $ make rebuild_cache and a run of $ cmake /path/to/CMakeLists.txt I think there is no difference. Alex ___ CMake

Re: [CMake] Problem with to long path names on win32

2007-10-11 Thread David Cole
What is the value of CMAKE_SOURCE_DIR and CMAKE_BINARY_DIR? On 10/11/07, Christian Ehrlicher [EMAIL PROTECTED] wrote: Hi, I currently can't compile kdebase/konqueror because the paths exceeds the max path length:

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

2007-10-11 Thread a . neundorf-work
On Wednesday 10 October 2007 22:32, Eric Noulard wrote: 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

Re: [CMake] Generate Intel Compiler Project Files dire

2007-10-11 Thread a . neundorf-work
On Thursday 11 October 2007 17:27, Neumann, Jan (SCR US) wrote: Hi, I was wondering if it is possible to use CMake to generate Visual Studio 2003 or 2005 project files that will use the Intel C++ compiler. I think this is not supported. Currently, I am generating first the Visual Studio

Re: [CMake] Problem with to long path names on win32

2007-10-11 Thread Brad King
Christian Ehrlicher wrote: Hi, I currently can't compile kdebase/konqueror because the paths exceeds the max path length: D:\kde-msvc\tmp\kdebase-beta3-3.94.1.20071011\work\kdebase\apps\konqueror\sidebar\trees\konq_sidebartreetoplevelitem.cpp : fatal error C1083: Datei (vom Compiler

[CMake] Find out if a target exists?

2007-10-11 Thread Gonzalo Garramuño
I was wondering what's the best way to determine if a target exists. I wanted to modify a target's properties but depending on the type of build, it may not always exist. -- Gonzalo Garramuño [EMAIL PROTECTED] AMD4400 - ASUS48N-E GeForce7300GT Kubuntu Edgy

[CMake] RE: CPack MacOSX support

2007-10-11 Thread Félix C. Morency
Hi, Actually the library isn't build by CMake. It is a 3rd party library already builded (a .dylib actually) so it doesn't answer the question, sorry. Regards, Félix ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

[CMake] trouble using CMake to make VTK from source

2007-10-11 Thread Trevis Crane
Hi, I'm running winXP and want to develop in C++ using Microsoft Visual Studio .NET 2003. I downloaded the VTK source and CMake, installed CMake and am trying to use it to create the .sln file for Visual Studio to compile the library binaries. So, I setup CMake by giving it the source code

Re: [CMake] Problem with to long path names on win32

2007-10-11 Thread Christian Ehrlicher
Brad King schrieb: Christian Ehrlicher wrote: Hi, I currently can't compile kdebase/konqueror because the paths exceeds the max path length: D:\kde-msvc\tmp\kdebase-beta3-3.94.1.20071011\work\kdebase\apps\konqueror\sidebar\trees\konq_sidebartreetoplevelitem.cpp : fatal error C1083: Datei (vom

[CMake] CMake bugfixing

2007-10-11 Thread Ihalainen Nickolay
How I can help to fix cmake bugs? Recently the problem is described http://www.cmake.org/Bug/view.php?id=5836 the fix is suggested, bug still no any reaction for the problem. Best regards, Ihalainen Nickolay ___ CMake mailing list CMake@cmake.org