Re: [CMake] How to set Windows DLL version information

2009-01-29 Thread Philip Lowman
On Thu, Jan 29, 2009 at 5:49 AM, Hendrik Sattler wrote: > Anders Backman schrieb: > > But I thought the whole idea was to get CMake to handle this? > > It states in the documentation that it should be possible. No > > exclusion about windows as far as I can see. > > > > I saw this thread before bu

Re: [CMake] Unable to locate test area for running CTest

2009-01-29 Thread Philip Lowman
On Thu, Jan 29, 2009 at 12:00 PM, Ashutosh Juneja wrote: > Hi, > > > > I want to do regression testing using CTest after building through cmake. > My test area (c:/test/T1 T2 T3…) and build area (c:/build) have these > locations. > > My test requires to 'cd' to test area T1, and then execute perl

Re: [CMake] How to configure build output directory

2009-01-29 Thread Philip Lowman
On Thu, Jan 29, 2009 at 9:47 PM, Tron Thomas wrote: > The point about the PATH needed for DLL's under this directory structure is > something I forgot to take into account when I was contemplating how to > organize things. It would not work out well with what I had in mind. Given > that, I think

Re: [CMake] how to build library for this..

2009-01-29 Thread Philip Lowman
On Thu, Jan 29, 2009 at 11:38 PM, ankit jain wrote: > > > 2009/1/29 Pau Garcia i Quiles > >> On Thu, Jan 29, 2009 at 1:12 PM, ankit jain >> wrote: >> > hi all, >> > >> > Problem: >> > >> > libA : A/foo.cc >> > libB : B/bar.cc >> > and a 3rd library: >> > libC : A/foo.cc B/bar.cc >> > ? >> > >>

Re: [CMake] telling find_package exactly where to find a package

2009-01-29 Thread Philip Lowman
On Fri, Jan 30, 2009 at 12:08 AM, Tyler Roscoe wrote: > I'll spend some more time reading FindQt4.cmake at work tomorrow, but I > wanted to post this while I'm thinking about it. > > I would like to tell find_package where my third-party libraries are (Qt > specifically). Since I know where the l

[CMake] telling find_package exactly where to find a package

2009-01-29 Thread Tyler Roscoe
I'll spend some more time reading FindQt4.cmake at work tomorrow, but I wanted to post this while I'm thinking about it. I would like to tell find_package where my third-party libraries are (Qt specifically). Since I know where the libraries are, I could manually add paths to INCLUDE_DIRS and LINK

Re: [CMake] how to build library for this..

2009-01-29 Thread ankit jain
2009/1/29 Pau Garcia i Quiles > On Thu, Jan 29, 2009 at 1:12 PM, ankit jain wrote: > > hi all, > > > > Problem: > > > > libA : A/foo.cc > > libB : B/bar.cc > > and a 3rd library: > > libC : A/foo.cc B/bar.cc > > ? > > > > here i build the libraries for A and B but not able to build lib for C .

Re: [CMake] How to configure build output directory

2009-01-29 Thread Tron Thomas
The point about the PATH needed for DLL's under this directory structure is something I forgot to take into account when I was contemplating how to organize things. It would not work out well with what I had in mind. Given that, I think I will have to consider a different strategy. Philip Lo

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

2009-01-29 Thread Alan W. Irwin
On 2009-01-29 13:46-0500 Brad King wrote: Hendrik Sattler wrote: Martin Costabel schrieb: 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 w

[CMake] find_package(Qt4): EXACT doesn't work

2009-01-29 Thread Tyler Roscoe
Hey cmakers, I think I've found a bug: [tyle...@alta:~/tmp/build]$ cat ../CMakeLists.txt cmake_minimum_required(VERSION 2.6) find_package(Qt4 9 EXACT REQUIRED) message("qt4_found is ${QT4_FOUND}") message("qt_use_file is ${QT_USE_FILE}") [tyle...@alta:~/tmp/build]$ cmake .. -- The C compi

Re: [CMake] ASM support

2009-01-29 Thread Phil Smith
You're too generous -- I looked yesterday :-( Anyway, I've followed those instructions (I think) but it's not working. I'm using ASM_DIGNUS as the assembler name. The ASM_DIGNUS files I've added (shown below) are all in Modules\ (the page is a bit vague on where they should go). CMakeASM_DIGNUS

Re: [CMake] Adding install dependency to test-target?

2009-01-29 Thread Aaron Turner
On Thu, Jan 29, 2009 at 12:37 PM, Alexander Neundorf wrote: > Yes, that doesn't work. "clean", "all", "install" are a special kind of target > in cmake, i.e. they are not really targets, they are only created when the > project files/makefiles are written. > > You could add a second COMMAND to th

Re: [CMake] I need help with compiling python scripts more than once

2009-01-29 Thread Tyler Roscoe
On Thu, Jan 29, 2009 at 07:04:48PM +0100, Simon Schäfer wrote: > in the highest level CMakeLists.txt: > add_subdirectroy(pyProject) > add_subdirectroy(cProject) Yup. > first try: > > ADD_CUSTOM_TARGET(pyCustom COMMAND ${PYTHON_EXECUTABLE} -O -c "import > compileall; compileall.compile_dir('./pyP

Re: [CMake] ASM support

2009-01-29 Thread Alexander Neundorf
On Thursday 29 January 2009, Phil Smith wrote: > Ok, I found http://www.cmake.org/Wiki/CMake/Assembler -- not sure how I > missed it before. It's only three weeks old or so. Alex ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listi

Re: [CMake] INSTALL TARGET with no target to compile

2009-01-29 Thread Alexander Neundorf
On Thursday 29 January 2009, Daniele E. Domenichelli wrote: > I have a small template library in c++ composed by ".h" files only and I > want to use cmake to configure, find dependencies and install the > library (compiling is not needed). > > This template library is in a bigger package with some

Re: [CMake] Adding install dependency to test-target?

2009-01-29 Thread Alexander Neundorf
On Thursday 29 January 2009, Aaron Turner wrote: > On Thu, Jan 29, 2009 at 7:43 AM, Hugo Heden wrote: > > 2008/11/20 Eric Noulard : > >> 2008/11/20 Hugo Heden : > >>> Good day all, > >>> > >>> > >>> Is there any way that I can add 'install' dependency to the > >>> 'test'-target? > >>> > >>> Doing

Re: [CMake] ASM support

2009-01-29 Thread Phil Smith
Ok, I found http://www.cmake.org/Wiki/CMake/Assembler -- not sure how I missed it before. "Never mind" (at least for now). Sorry 'bout that. -Original Message- From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Phil Smith Sent: Thursday, January 29, 2009 3:12 PM

[CMake] ASM support

2009-01-29 Thread Phil Smith
Alexander Neundorf wrote, long ago, re using ASM: >If you are using an embedded toolchain, the generic "ASM" language should work >for you. Preset CMAKE_ASM_COMPILER to your compiler (following the >instructions at http://www.cmake.org/Wiki/CMake_Cross_Compiling ) and create >a Generic-.cmake in th

Re: [CMake] problem with cpack and the using the root directory for packages

2009-01-29 Thread Eric Noulard
2009/1/29 Simon Schäfer : > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi > I want to pack my files together with cpack. but they should end up to > have absolute paths or atleast only stripped by the first / within the > tar ball. > And the packaging should be done by the user not the roo

Re: [CMake] Adding install dependency to test-target?

2009-01-29 Thread Michael Jackson
You probably want to investigate "ADDITIONAL_MAKE_CLEAN_FILES" property. _ Mike Jackson mike.jack...@bluequartz.net BlueQuartz Softwarewww.bluequartz.net Principal Software Engineer Dayton

Re: [CMake] ActiveQt

2009-01-29 Thread Clinton Stimpson
Is there a reason your patch puts the QAxServer and QAxContainer modules in one set of cmake variables? ActiveQt is the name of a framework that contains 2 modules. The other modules get their own set of cmake variables (QtGui, QtCore, etc...). Clint Pau Garcia i Quiles wrote: On Wed, Jan

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

2009-01-29 Thread Brad King
Hendrik Sattler wrote: > Martin Costabel schrieb: >> 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

Re: [CMake] I need help with compiling python scripts more than once

2009-01-29 Thread Simon Schäfer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tyler wrote: > You mean the highest level? Maybe you visualize trees upside-down from > how I do it, but you're asking about integrating both pyProject and > cProject from the directory that houses both of those directories, > right? Yes I meant highes

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

2009-01-29 Thread Alan W. Irwin
This thread has included different questions for the macada gcc user that have been brought up in various posts. I will try to pass on all his responses which he finally completed this morning. Brad: What is the output of macada gcc with this command line: gcc -E -dM -x c /dev/null See at

Re: [CMake] I need help with compiling python scripts more than once

2009-01-29 Thread Tyler
On Thu, Jan 29, 2009 at 05:58:11PM +0100, Simon Schäfer wrote: > well i have two projet which should both be build with cmake for example: > > ./CMakeLists.txt > ./pyProject/CMakeLists.txt > ./cProject/CMakeLists.txt > > now I want to compile all together when I am at the lowest level. I You mea

[CMake] problem with cpack and the using the root directory for packages

2009-01-29 Thread Simon Schäfer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi I want to pack my files together with cpack. but they should end up to have absolute paths or atleast only stripped by the first / within the tar ball. And the packaging should be done by the user not the root. If I put the destination to /usr/bin

[CMake] Unable to locate test area for running CTest

2009-01-29 Thread Ashutosh Juneja
Hi, I want to do regression testing using CTest after building through cmake. My test area (c:/test/T1 T2 T3…) and build area (c:/build) have these locations. My test requires to 'cd' to test area T1, and then execute perl commands. I do these steps: 1. Run cmake from source tree, having

[CMake] INSTALL TARGET with no target to compile

2009-01-29 Thread Daniele E. Domenichelli
I have a small template library in c++ composed by ".h" files only and I want to use cmake to configure, find dependencies and install the library (compiling is not needed). This template library is in a bigger package with some other libraries that I install using "INSTALL TARGET" signature. I k

Re: [CMake] I need help with compiling python scripts more than once

2009-01-29 Thread Simon Schäfer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tyler Roscoe schrieb: > On Thu, Jan 29, 2009 at 03:27:44PM +0100, Simon Schäfer wrote: >> I want to automate the build of my python scripts which work together >> with my C project, and on a later stage pack all together with CPack. >> >> My problem fo

Re: [CMake] Adding install dependency to test-target?

2009-01-29 Thread Aaron Turner
On Thu, Jan 29, 2009 at 7:43 AM, Hugo Heden wrote: > 2008/11/20 Eric Noulard : >> 2008/11/20 Hugo Heden : >>> Good day all, >>> >>> >>> Is there any way that I can add 'install' dependency to the 'test'-target? >>> >>> Doing >>> >>> add_dependencies( test install ) >>> >>> does not seem to work:

Re: [CMake] I need help with compiling python scripts more than once

2009-01-29 Thread Tyler Roscoe
On Thu, Jan 29, 2009 at 03:27:44PM +0100, Simon Schäfer wrote: > I want to automate the build of my python scripts which work together > with my C project, and on a later stage pack all together with CPack. > > My problem for now is to automatically build my python code with cmake. > I am able to

Re: [CMake] Adding install dependency to test-target?

2009-01-29 Thread Hugo Heden
2008/11/20 Eric Noulard : > 2008/11/20 Hugo Heden : >> Good day all, >> >> >> Is there any way that I can add 'install' dependency to the 'test'-target? >> >> Doing >> >> add_dependencies( test install ) >> >> does not seem to work: >> CMake Error at ... (ADD_DEPENDENCIES): >> add_dependencie

Re: [CMake] INSTALL dependencies

2009-01-29 Thread David Cole
I agree with this sentiment. Use GetPrerequisites.cmake to gather the list of dlls that your stuff depends on, and then use some INSTALL(FILES commands to install the dll files. If there are issues with GetPrerequisites, email the list or enter an issue in the bug tracker and let's make it work.

[CMake] Visual Studio reports errors based on output of custom commands

2009-01-29 Thread Hugo Heden
Good day all, (Not sure if most people already know this, but I thought it might be useful to record this "somewhere on the Internet" for future reference) Visual Studio sometimes reports errors from custom commands (or custom targets) even though they exit with zero, if they output certain strin

[CMake] I need help with compiling python scripts more than once

2009-01-29 Thread Simon Schäfer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I want to automate the build of my python scripts which work together with my C project, and on a later stage pack all together with CPack. My problem for now is to automatically build my python code with cmake. I am able to build it on the initia

Re: [CMake] how to build library for this..

2009-01-29 Thread Pau Garcia i Quiles
On Thu, Jan 29, 2009 at 1:12 PM, ankit jain wrote: > hi all, > > Problem: > > libA : A/foo.cc > libB : B/bar.cc > and a 3rd library: > libC : A/foo.cc B/bar.cc > ? > > here i build the libraries for A and B but not able to build lib for C . > Guide me to do that. What should be the content of cmak

[CMake] how to build library for this..

2009-01-29 Thread ankit jain
hi all, Problem: libA : A/foo.cc libB : B/bar.cc and a 3rd library: libC : A/foo.cc B/bar.cc ? here i build the libraries for A and B but not able to build lib for C . Guide me to do that. What should be the content of cmakelist file of C to create lib C here A and B are sub folders of C Rega

Re: [CMake] Using Boost and Qt together.

2009-01-29 Thread 0xd34df00d
2009/1/29 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 Cmak

Re: [CMake] How to set Windows DLL version information

2009-01-29 Thread Hendrik Sattler
Anders Backman schrieb: > But I thought the whole idea was to get CMake to handle this? > It states in the documentation that it should be possible. No > exclusion about windows as far as I can see. > > I saw this thread before but as CMake claims to have this > functionality (multiplatform) I tho

Re: [CMake] How to set Windows DLL version information

2009-01-29 Thread Anders Backman
But I thought the whole idea was to get CMake to handle this? It states in the documentation that it should be possible. No exclusion about windows as far as I can see. I saw this thread before but as CMake claims to have this functionality (multiplatform) I thought that would be a much better sol

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

2009-01-29 Thread ankit jain
2009/1/29 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

Re: [CMake] Bug: set_target_property VERSION WIN32

2009-01-29 Thread Hendrik Sattler
Anders Backman schrieb: > Hi all > > Old issue, but Im trying to set dll version from CMAKE on dynamic libraries. > After reading docs/release info I saw that version 2.4.4 included this > functionality. > > However, Im trying without any success. > So IS this supported or not? > > SET_TARGET_PR

[CMake] Bug: set_target_property VERSION WIN32

2009-01-29 Thread Anders Backman
Hi all Old issue, but Im trying to set dll version from CMAKE on dynamic libraries. After reading docs/release info I saw that version 2.4.4 included this functionality. However, Im trying without any success. So IS this supported or not? SET_TARGET_PROPERTIES( target PROPERTIES VERSION 1.2.3 )

Re: [CMake] How to set Windows DLL version information

2009-01-29 Thread Hendrik Sattler
Anders Backman schrieb: > so set_target_properties(target PROPERTIES VERSION 1.1 SOVERSION 1.1) > > doesnt work under windows then? No. A RC file is not created automatically. A bit complicated as other information is included in that file, too. However, you can use configure_file to automaticall

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

2009-01-29 Thread Hendrik Sattler
Martin Costabel schrieb: > 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/lib

Re: [CMake] How to set Windows DLL version information

2009-01-29 Thread Anders Backman
so set_target_properties(target PROPERTIES VERSION 1.1 SOVERSION 1.1) doesnt work under windows then? /A 2008/12/26 David Cole : > Add an *.rc file with the correct VS_VERSIONINFO resource in it as a source > file for your dll... > set(source_files > blah1.cpp > blah2.cpp > mydll.rc > )

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

2009-01-29 Thread ankit jain
2009/1/29 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