[CMake] Finally got CPACK_SOURCE_IGNORE_FILES to work

2006-07-07 Thread Alan W. Irwin
I am following the recommendations at http://public.kitware.com/pipermail/cmake/2006-May/009060.html and http://public.kitware.com/pipermail/cmake/2006-July/010002.html to create the CMake equivalent of the autotools "make dist" command, but for a long time, I could not get the CPACK_SOURCE_IGNORE

[CMake] FIND_PACKAGE list of components (...REQUIRED components)

2006-07-07 Thread Jan Woetzel
Hi CMates, (1) can I retrieve a list with all components listed after REQUIRED, e.g. FIND_PACKAGE(Foo REQUIRED component1 component2 ... ) --> component1; component2 ? I want to use it in FindFoo.cmake with Foo_FIND_REQUIRED_component1 to handle arbitrary components (unknown to teh Find script

Re: [CMake] Re: Convenience libraries

2006-07-07 Thread Alexander Neundorf
Von: John Ellson <[EMAIL PROTECTED]> > Brad King wrote: > > > > I've just added it to the FAQ: > > > > > http://www.cmake.org/Wiki/CMake_FAQ#Does_CMake_support_.22convenience.22_libraries.3F > > > > > > > Note that KDE used to use convenience libraries and is doing just fine > > without them.

Re: [CMake] How to create SOURCE_GROUP for include files

2006-07-07 Thread Steve Johns
The source and header files will not magically be found in other directories. You have to tell CMake where to find them. Try this in the top-level CMakeLists.txt file: ADD_LIBRARY(mylib src/x.cpp incl/x.hpp) SOURCE_GROUP("Include Files" FILES incl/x.hpp) Basically source files have to be nam

Re: [CMake] CMake and Subversion.

2006-07-07 Thread Andy Cedilnik
Hi Andrew, Subversion support was added in CMake 2.4. You may want to run: ctest -D ExperimentalUpdate -V and see what the output is. Andy Andrew Maclean wrote: We have a Windows XP client and we need to run nightly tests on it. The repository is a subversion one on a linux box. We

Re: [CMake] How to create SOURCE_GROUP for include files

2006-07-07 Thread Brad King
Steve Johns wrote: ProjDir src incl lib into which directory's CMakelists.txt file should I put the SOURCE_FILES( "Include Files" FILES x.hpp y.hpp ) command, and could this: ADD_LIBRARY( MyLibProj x.cpp y.cpp x.hpp y.hpp ) The source and header files will not magically be

Re: [CMake] Building an object with spaces in path

2006-07-07 Thread Brad King
Richard Moreland wrote: I have a problem when building an object that resides in a path with spaces. I have the following source tree: /test CMakeLists.txt two words/ CMakeLists.txt main.cpp Spaces in the path to the top-level source tree and/or top-level build tree are suppor

[CMake] Building an object with spaces in path

2006-07-07 Thread Richard Moreland
Hi, I have a problem when building an object that resides in a path with spaces. I have the following source tree: /test CMakeLists.txt two words/ CMakeLists.txt main.cpp When I attempt to build this (in or out of source, using the generated Makefile), I get: make[2]: Enteri

Re: [CMake] How to create SOURCE_GROUP for include files

2006-07-07 Thread Steve Johns
SOURCE_FILES( "Include Files" FILES afile.hpp bfile.hpp ) This just assigns a group to the source files, but they still have to be explicitly added to the source list of a target. So, with a source dir tree like this: ProjDir src incl lib into which directory's CMakelists.txt fil

Re: [CMake] Re: Convenience libraries

2006-07-07 Thread Manuel Klimek
Hi, just as a hint, I solved it the following way: lib/a/a.cmake lib/b/b.cmake lib/c/c.cmake lib/c/CMakeLists.txt now the .cmake files just contain conveniently named variables (a_SRC, b_SRC, c_SRC) and in lib/c/CMakeLists.txt I use a macro like MY_LIBRARY( c SHARED ../a/a.cmake ../b/b.cmake ../c

Re: [CMake] Re: Convenience libraries

2006-07-07 Thread Brad King
John Ellson wrote: how do I reference a symbol defined in CMakeLists.txt in another directory for a list of source files? e.g. in lib/graph/CMakeLists.txt I have: SET(graph_SRCS attribs.c agxbuf.c edge.c graph.c graphio.c lexer.c node.c parser.c refstr.c trie.c ) and I want

[CMake] Re: Convenience libraries

2006-07-07 Thread John Ellson
Brad King wrote: I've just added it to the FAQ: http://www.cmake.org/Wiki/CMake_FAQ#Does_CMake_support_.22convenience.22_libraries.3F Note that KDE used to use convenience libraries and is doing just fine without them. They were really a hack in auto* because those tools did not support

Re: [CMake] How to create SOURCE_GROUP for include files

2006-07-07 Thread Brad King
Steve Johns wrote: Hi. What I would like to accomplish: In the MS VC7.1 .Net IDE In the Solution Explorer, inside my project's folder, at the same level as the 'Source Files' folder, I would like to create a 2nd folder 'Include Files' that would contain/display the ".hpp" files for my projec

Re: Convenience libraries [was Re: [CMake] how to add capability to generate preprocessed and not-yet-compiled files ?]

2006-07-07 Thread Brad King
Alexander Neundorf wrote: Hi, Von: Brad King <[EMAIL PROTECTED]> John Ellson wrote: Brad King wrote: John Ellson wrote: Not sure that I'm following the converstation properly here, but can any of this be used to provide access to a set of .o for use as a "convenience library" ? No, these v

Re: Re: Convenience libraries [was Re: [CMake] how to add capability to generate preprocessed and not-yet-compiled files ?]

2006-07-07 Thread Alexander Neundorf
Hi, Von: Brad King <[EMAIL PROTECTED]> > John Ellson wrote: > > Brad King wrote: > >> John Ellson wrote: > >>> > >>> Not sure that I'm following the converstation properly here, but > >>> can any of this be used to provide access to a set of .o for use as a > >>> "convenience library" ? > >> > >

Re: Re: [CMake] YARI (yet another RPATH idea)

2006-07-07 Thread Alexander Neundorf
Original-Nachricht Datum: Fri, 07 Jul 2006 10:28:01 -0400 Von: Brad King <[EMAIL PROTECTED]> An: Alexander Neundorf <[EMAIL PROTECTED]> Betreff: Re: [CMake] YARI (yet another RPATH idea) > Alexander Neundorf wrote: > > it's me again, again with my favourite topic: RPATH. > > On

[CMake] How to create SOURCE_GROUP for include files

2006-07-07 Thread Steve Johns
Hi. What I would like to accomplish: In the MS VC7.1 .Net IDE In the Solution Explorer, inside my project's folder, at the same level as the 'Source Files' folder, I would like to create a 2nd folder 'Include Files' that would contain/display the ".hpp" files for my project. My source tree

Re: [CMake] YARI (yet another RPATH idea)

2006-07-07 Thread Brad King
Alexander Neundorf wrote: it's me again, again with my favourite topic: RPATH. On the Mac there is the install name tool, and now I found a similar tool for ELF systems, chrpath. chrpath is able to: 1) remove the RPATH from a executable or library 2) change the RPATH to a RUNPATH 3) replace the

Re: Convenience libraries [was Re: [CMake] how to add capability to generate preprocessed and not-yet-compiled files ?]

2006-07-07 Thread Brad King
John Ellson wrote: Brad King wrote: John Ellson wrote: Not sure that I'm following the converstation properly here, but can any of this be used to provide access to a set of .o for use as a "convenience library" ? No, these variables are used to specify rules for the generators to put in t

Convenience libraries [was Re: [CMake] how to add capability to generate preprocessed and not-yet-compiled files ?]

2006-07-07 Thread John Ellson
Brad King wrote: John Ellson wrote: Not sure that I'm following the converstation properly here, but can any of this be used to provide access to a set of .o for use as a "convenience library" ? No, these variables are used to specify rules for the generators to put in the build files. Th

Re: [CMake] how to add capability to generate preprocessed and not-yet-compiled files ?

2006-07-07 Thread Brad King
John Ellson wrote: Brad King wrote: Alexander Neundorf wrote: Hi, it would be nice if it would be possible to have for each object file also a target which only preprocesses the file and one which preprocesses and compiles, but not assembles the file (so that you get the assembler code).

Re: [CMake] how to add capability to generate preprocessed and not-yet-compiled files ?

2006-07-07 Thread John Ellson
Brad King wrote: Alexander Neundorf wrote: Hi, it would be nice if it would be possible to have for each object file also a target which only preprocesses the file and one which preprocesses and compiles, but not assembles the file (so that you get the assembler code). Is there a way to do

Re: [CMake] Visual C++ 2005 Express - command line?

2006-07-07 Thread Brad King
[EMAIL PROTECTED] wrote: ok, bit of a learning curve here while changing IDE's (and learining CMake again). From the CMakeCache.txt for VTK: MAKECOMMAND:STRING=C:\PROGRA~1\MICROS~2\Common7\IDE\VCExpress.exe VTK.sln /build Release /project ALL_BUILD at DOS cmd or cygwin bash prompt the abov

Re: [CMake] how to add capability to generate preprocessed and not-yet-compiled files ?

2006-07-07 Thread Brad King
Alexander Neundorf wrote: Hi, it would be nice if it would be possible to have for each object file also a target which only preprocesses the file and one which preprocesses and compiles, but not assembles the file (so that you get the assembler code). Is there a way to do this with macros ?

[CMake] NMake X64 VS 8.0

2006-07-07 Thread Jorge Rodriguez
I am having some problems building a 64 bit version of my application using the NMake generator on 64 bit Windows with Visual Studio 8.0. I am using the Microsoft Platform SDK command prompts that can be opened through the start menu. I can use the "Visual Studio 8 2005" generator just fine. H

Re: [CMake] Visual C++ 2005 Express - command line?

2006-07-07 Thread dean.inglis
ok, bit of a learning curve here while changing IDE's (and learining CMake again). >From the CMakeCache.txt for VTK: MAKECOMMAND:STRING=C:\PROGRA~1\MICROS~2\Common7\IDE\VCExpress.exe VTK.sln /build Release /project ALL_BUILD at DOS cmd or cygwin bash prompt the above MAKECOMMAND runs. Dean

[CMake] YARI (yet another RPATH idea)

2006-07-07 Thread Alexander Neundorf
Hi, it's me again, again with my favourite topic: RPATH. On the Mac there is the install name tool, and now I found a similar tool for ELF systems, chrpath. chrpath is able to: 1) remove the RPATH from a executable or library 2) change the RPATH to a RUNPATH 3) replace the RPATH with another RPAT

[CMake] CMake and Subversion.

2006-07-07 Thread Andrew Maclean
We have a Windows XP client and we need to run nightly tests on it. The repository is a subversion one on a linux box.   We use ssh+ssl to checkout the repository to the client. Now we can check it out OK and run a nightly test which is submitted OK. However the checked out repository is never upda

[CMake] how to add capability to generate preprocessed and not-yet-compiled files ?

2006-07-07 Thread Alexander Neundorf
Hi, it would be nice if it would be possible to have for each object file also a target which only preprocesses the file and one which preprocesses and compiles, but not assembles the file (so that you get the assembler code). Is there a way to do this with macros ? I almost think this would h