Re: [CMake] how to create library for a folder having only two sub folder

2009-01-28 Thread Philip Lowman
On Wed, Jan 28, 2009 at 11:49 PM, ankit jain wrote: > Hi philip, > Thanks for showing interest my query. > > Actually i have a folder name myapp. it has two sub folders sub1 and sub2 > only. > these folders have some c files into it. i created the cmakelist file for > both the subfolders and with

Re: [CMake] Installing shared libs with symlinks

2009-01-28 Thread Philip Lowman
On Mon, Jan 12, 2009 at 3:34 AM, Martin Apel wrote: > > > > This looks like a missing feature request and not a bug. I would > > request an option be added to GET_FILENAME_COMPONENT that follows > > symbolic links recursively back to their source (CANONICALIZE > > perhaps?). In the meantime you

Re: [CMake] error: multiple declaration of main

2009-01-28 Thread Maik Beckmann
2009/1/29 ankit jain : > 2009/1/29 Maik Beckmann >> >> > but there is another function of a one header file which is called in >> > the >> > two C files. also it used to initialize a variable... >> >> If this is the case, you shouldn't have any problems, so I assume the >> situation is different.

Re: [CMake] Include header files at run time through cmake

2009-01-28 Thread Maik Beckmann
2009/1/29 ankit jain : > hi all, > i have a c file in a folder which contain the line #include "%h" which says > compile the file with -I option with gcc to tell where %h is located. > but in cmake as i already add the header files by defining the path through > a variable and add it through includ

Re: [CMake] error: multiple declaration of main

2009-01-28 Thread Maik Beckmann
2009/1/29 ankit jain : > thanks for the help. with ur advice iam able to remove the multiple > declaration error of main by creating namespace. Nice! > but there is another function of a one header file which is called in the > two C files. also it used to initialize a variable... If this is the

[CMake] Include header files at run time through cmake

2009-01-28 Thread ankit jain
hi all, i have a c file in a folder which contain the line #include "%h" which says compile the file with -I option with gcc to tell where %h is located. but in cmake as i already add the header files by defining the path through a variable and add it through include_directories command. it still g

[CMake] Using Boost and Qt together.

2009-01-28 Thread Surya Kiran Gullapalli
Hello,I've a big project, where in I'm planning to use both Boost.Signals and Qt Signal/slot mechanism. >From Qt4.1 there's a CONFIG += no_keywords option provided to qmake to faclitate use of Boost.Signals along with Qt signal slots. As I'm using Cmake (2.6), how can i achieve the same thing wit

Re: [CMake] how to create library for a folder having only two sub folder

2009-01-28 Thread Philip Lowman
On Wed, Jan 28, 2009 at 4:44 AM, ankit jain wrote: > hi all, > > I am a newbie to cmake. the problem iam facing is like this: > > actually i hvae a folder which many sub folder. i cretaed a CmakeLists file > for very folder and i added them to the root Cmakelist file. now i have > successfully cr

Re: [CMake] cmake generator for eclipse

2009-01-28 Thread Philip Lowman
On Wed, Jan 28, 2009 at 9:59 AM, John Vines (CISD/HPCD) wrote: > What versions of cmake support the generation of eclipse project files? I > am using cmake 2.4-patch 8 and am trying to generate an Eclipse project > file, via "ccmake -G "Eclipse CDT4 - Unix Makefiles" and am not generating > the

Re: [CMake] Regression between 2.4.8 and 2.6.2 for the macada version of the gcc compiler

2009-01-28 Thread Alan W. Irwin
On 2009-01-29 00:31+0100 Martin Costabel wrote: Alan W. Irwin wrote: [] Is there a better gcc option then -v to find out the _actual_ linker being used? Use -Wl,-v :-) Thanks very much for that suggestion. It works like a charm on Linux. I have passed it on to the macada gcc user, and I wi

Re: [CMake] How to configure build output directory

2009-01-28 Thread Philip Lowman
On Tue, Jan 27, 2009 at 10:34 PM, Tron Thomas wrote: > I want to use CMake to configure a project that will build several > applications. I would like things such that each built program ends up in a > directory path like: > .../BuildDirectory/Debug/ApplicationName/AppliationName(.exe) > > > What

Re: [CMake] INSTALL dependencies

2009-01-28 Thread Philip Lowman
On Wed, Jan 28, 2009 at 6:10 PM, Andreas Pakulat wrote: > On 28.01.09 23:58:26, Pau Garcia i Quiles wrote: > > On Wed, Jan 28, 2009 at 11:41 PM, Andreas Pakulat wrote: > > When I develop an application which uses Qwt5, Qt4 and OSG, it would > > be convenient that a "nmake install" would install

Re: [CMake] Regression between 2.4.8 and 2.6.2 for the macada version of the gcc compiler

2009-01-28 Thread Martin Costabel
Alan W. Irwin wrote: [] Is there a better gcc option then -v to find out the _actual_ linker being used? Use -Wl,-v :-) On 10.4, if you run gcc -dynamiclib, the linking is managed by /usr/bin/libtool which in turn calls /usr/bin/ld, and /usr/bin/libtool understands the -current_version flag.

Re: [CMake] INSTALL dependencies

2009-01-28 Thread Andreas Pakulat
On 28.01.09 23:58:26, Pau Garcia i Quiles wrote: > On Wed, Jan 28, 2009 at 11:41 PM, Andreas Pakulat wrote: > > On 28.01.09 22:58:04, Pau Garcia i Quiles wrote: > >> On Wed, Jan 28, 2009 at 10:39 PM, Alexander Neundorf > >> wrote: > >> > On Wednesday 28 January 2009, Pau Garcia i Quiles wrote: >

Re: [CMake] INSTALL dependencies

2009-01-28 Thread Mike Arthur
On Wednesday 28 January 2009 20:41:38 Pau Garcia i Quiles wrote: > Is it possible to install a target's dependencies using the INSTALL( > TARGET ... ) signature? I. e. something like INSTALL ( TARGET mytarget > INSTALL_DEPENDENCIES ) which goes through the parameters of > TARGET_LINK_LIBRARIES and

Re: [CMake] INSTALL dependencies

2009-01-28 Thread Pau Garcia i Quiles
On Wed, Jan 28, 2009 at 11:41 PM, Andreas Pakulat wrote: > On 28.01.09 22:58:04, Pau Garcia i Quiles wrote: >> On Wed, Jan 28, 2009 at 10:39 PM, Alexander Neundorf >> wrote: >> > On Wednesday 28 January 2009, Pau Garcia i Quiles wrote: >> >> Hello, >> >> >> >> Is it possible to install a target's

Re: [CMake] INSTALL dependencies

2009-01-28 Thread Andreas Pakulat
On 28.01.09 22:58:04, Pau Garcia i Quiles wrote: > On Wed, Jan 28, 2009 at 10:39 PM, Alexander Neundorf > wrote: > > On Wednesday 28 January 2009, Pau Garcia i Quiles wrote: > >> Hello, > >> > >> Is it possible to install a target's dependencies using the INSTALL( > >> TARGET ... ) signature? I. e

Re: [CMake] Regression between 2.4.8 and 2.6.2 for the macada version of the gcc compiler

2009-01-28 Thread Brad King
Alexander Neundorf wrote: On Wednesday 28 January 2009, Alan W. Irwin wrote: One of the PLplot developers has been using the macada version of the gcc compiler on Mac OS X for a long time because that version gives him an integrated Ada compiler as well. That compiler worked well for cmake-2.4,

Re: [CMake] Regression between 2.4.8 and 2.6.2 for the macada version of the gcc compiler

2009-01-28 Thread Brad King
Alan W. Irwin wrote: The issue can be illustrated by a simple "hello-world" shared library build test project with SOVERSION and VERSION specified for the library. From "make.out_gcc_macada_2.6.2": -- /usr/local/ada

Re: [CMake] INSTALL dependencies

2009-01-28 Thread Pau Garcia i Quiles
On Wed, Jan 28, 2009 at 10:39 PM, Alexander Neundorf wrote: > On Wednesday 28 January 2009, Pau Garcia i Quiles wrote: >> Hello, >> >> Is it possible to install a target's dependencies using the INSTALL( >> TARGET ... ) signature? I. e. something like INSTALL ( TARGET mytarget >> INSTALL_DEPENDENC

Re: [CMake] INSTALL dependencies

2009-01-28 Thread Alexander Neundorf
On Wednesday 28 January 2009, Pau Garcia i Quiles wrote: > Hello, > > Is it possible to install a target's dependencies using the INSTALL( > TARGET ... ) signature? I. e. something like INSTALL ( TARGET mytarget > INSTALL_DEPENDENCIES ) which goes through the parameters of > TARGET_LINK_LIBRARIES a

Re: [CMake] Regression between 2.4.8 and 2.6.2 for the macada version of the gcc compiler

2009-01-28 Thread Alexander Neundorf
On Wednesday 28 January 2009, Alan W. Irwin wrote: > One of the PLplot developers has been using the macada version of the gcc > compiler on Mac OS X for a long time because that version gives him an > integrated Ada compiler as well. That compiler worked well for cmake-2.4, > but he has recently

Re: [CMake] How to configure build output directory

2009-01-28 Thread Alexander Neundorf
On Wednesday 28 January 2009, Tron Thomas wrote: > I want to use CMake to configure a project that will build several > applications. I would like things such that each built program ends up > in a directory path like: > .../BuildDirectory/Debug/ApplicationName/AppliationName(.exe) > > > What is n

[CMake] INSTALL dependencies

2009-01-28 Thread Pau Garcia i Quiles
Hello, Is it possible to install a target's dependencies using the INSTALL( TARGET ... ) signature? I. e. something like INSTALL ( TARGET mytarget INSTALL_DEPENDENCIES ) which goes through the parameters of TARGET_LINK_LIBRARIES and installs them too. If there is not such an option, would it be a

Re: [CMake] cpack bundle generator qq

2009-01-28 Thread Mike Arthur
On Monday 26 January 2009 21:53:18 Timothy M. Shead wrote: > I'm looking at an up-to-date CMake source tree, and I don't see this > generator ... can you explain what it is? Apologies, PackageMaker generator is what I meant. -- Cheers, Mike Arthur http://mikearthur.co.uk/

Re: [CMake] Regression between 2.4.8 and 2.6.2 for the macada version of the gcc compiler

2009-01-28 Thread Alan W. Irwin
On 2009-01-28 11:19+0100 Hendrik Sattler wrote: Alan W. Irwin schrieb: Can somebody recommend a fix to that file so that CMake-2.6.2 works just as well as CMake-2.4.8 for the macada version of the gcc compiler? I have no idea whether gcc should always be expected to recognize the -current_vers

Re: [CMake] cmake generator for eclipse

2009-01-28 Thread Eric Noulard
2009/1/28 John Vines (CISD/HPCD) : > What versions of cmake support the generation of eclipse project files? I > am using cmake 2.4-patch 8 and am trying to generate an Eclipse project > file, via "ccmake -G "Eclipse CDT4 - Unix Makefiles" and am not generating > the .project files. Eclipse CDT4

[CMake] cmake generator for eclipse

2009-01-28 Thread John Vines (CISD/HPCD)
What versions of cmake support the generation of eclipse project files? I am using cmake 2.4-patch 8 and am trying to generate an Eclipse project file, via "ccmake -G "Eclipse CDT4 - Unix Makefiles" and am not generating the .project files. Thanks. begin:vcard fn:John Vines n:Vines;John org:A

Re: [CMake] error: multiple declaration of main

2009-01-28 Thread Maik Beckmann
Am Mittwoch 28 Januar 2009 schrieb ankit jain: > Then how to include those files containg main() function. anyhow we have > create a libraries for it. what is the way to create libraries from those. Alter the source files to make them usable as part of a library and as a program on its own. #ifd

Re: [CMake] error: multiple declaration of main

2009-01-28 Thread Maik Beckmann
Am Mittwoch 28 Januar 2009 schrieb ankit jain: > thanks maik fo rhte reply. > > but actually i have done something like this: > > add_library(myapp SHARED ${mypp_srcs}) > > where myapp_srcs contain around 4 .C files. > > in this case how to do that > > Regards- > ankit jain > Hm, you are a C++ new

Re: [CMake] Mac dashboard results today

2009-01-28 Thread David Cole
Hopefully this fixes it: $ cvs commit -m "BUG: Fix careless typo that only caused test failures on clean builds..." Modules/Platform/Darwin.cmake /cvsroot/CMake/CMake/Modules/Platform/Darwin.cmake,v <-- Modules/Platform/Darwin.cmake new revision: 1.54; previous revision: 1.53 We'll know for sur

[CMake] Mac dashboard results today

2009-01-28 Thread David Cole
I apologize for the state of the CMake dashboard this morning with respect to Macintosh builds. I will get it cleared up ASAP and let you all know when it is safe to go back in the water... Thx, David Cole ___ CMake mailing list CMake@cmake.org http://www

Re: [CMake] error: multiple declaration of main

2009-01-28 Thread Maik Beckmann
Am Mittwoch 28 Januar 2009 schrieb ankit jain: > hi all, > > in one of my folder i have three files. in each of them a main() function > is defined. now on building it says that multiple declaration of main. if i > compile the makefile using gcc only no such error had came. > Guide me what to do? >

Re: [CMake] Regression between 2.4.8 and 2.6.2 for the macada version of the gcc compiler

2009-01-28 Thread Hendrik Sattler
Alan W. Irwin schrieb: > Can somebody recommend a fix to that file so that CMake-2.6.2 works just as > well as CMake-2.4.8 for the macada version of the gcc compiler? > > I have no idea whether gcc should always be expected to recognize the > -current_version flag. http://gcc.gnu.org/onlinedocs/g

[CMake] error: multiple declaration of main

2009-01-28 Thread ankit jain
hi all, in one of my folder i have three files. in each of them a main() function is defined. now on building it says that multiple declaration of main. if i compile the makefile using gcc only no such error had came. Guide me what to do? Regards- ankit jain __

[CMake] how to create library for a folder having only two sub folder

2009-01-28 Thread ankit jain
hi all, I am a newbie to cmake. the problem iam facing is like this: actually i hvae a folder which many sub folder. i cretaed a CmakeLists file for very folder and i added them to the root Cmakelist file. now i have successfully created the libraries for all the sub folders but i want a main lib