[CMake] Want to compile a file but does not want to link it in library

2009-05-25 Thread ankit jain
Hi all, I have a folder f1 having 4 files c1.c c2.c c3.c c4.c. Now iam compiling all these files with certain definitions and other compiler flags. Now what i want is that when iam building library for this forder f1 it does not take c4.c One way is that i should not include this file in creatin

Re: [CMake] Suggesting to FindQT4.cmake where to find QT4

2009-05-25 Thread Jed Brown
Andreas Pakulat wrote: > On 25.05.09 23:17:55, Jed Brown wrote: > As soon as people start installing differing versions of the same > software into the same prefix they've already screwed up anyway. Thats > not supported by any software I use on a daily basis (even KDE3 and KDE4 > are only co-inst

Re: [CMake] Suggesting to FindQT4.cmake where to find QT4

2009-05-25 Thread Jed Brown
Bill Hoffman wrote: > You can also set QMake on the cmake command line as well: > > cmake -DQT_QMAKE_EXECUTABLE=/path/to/qmake ../source Yeah, I'm much less concerned with this particular case as with the philosophy that the correct way to select installations is by modifying PATH. Frustratingl

Re: [CMake] Suggesting to FindQT4.cmake where to find QT4

2009-05-25 Thread Andreas Pakulat
On 25.05.09 22:55:17, Jed Brown wrote: > Andreas Pakulat wrote: > > > Can you please elaborate, I have no idea what a/b or foo/bar refer to in > > this example. However qmake knows exactly where the headers and libs > > (and data) for the Qt its supposed to be used with are. So having the > > righ

Re: [CMake] Suggesting to FindQT4.cmake where to find QT4

2009-05-25 Thread Andreas Pakulat
On 25.05.09 23:17:55, Jed Brown wrote: > David Thompson wrote: > >>> Have you ever tried setting the PATH? It is actually quite easy and does > >>> not involve "great contortions". > >>> > >>> All I do is execute > >>> > >>> PATH='/home/software/qtsdk-2009.02/qt/bin:'$PATH > >>> > >>> and from the

Re: [CMake] Suggesting to FindQT4.cmake where to find QT4

2009-05-25 Thread Bill Hoffman
David Thompson wrote: Have you ever tried setting the PATH? It is actually quite easy and does not involve "great contortions". All I do is execute PATH='/home/software/qtsdk-2009.02/qt/bin:'$PATH and from then on, cmake uses the version of Qt4 that I downloaded and installed in the specified

Re: [CMake] Suggesting to FindQT4.cmake where to find QT4

2009-05-25 Thread Jed Brown
David Thompson wrote: >>> Have you ever tried setting the PATH? It is actually quite easy and does >>> not involve "great contortions". >>> >>> All I do is execute >>> >>> PATH='/home/software/qtsdk-2009.02/qt/bin:'$PATH >>> >>> and from then on, cmake uses the version of Qt4 that I downloaded and

Re: [CMake] Suggesting to FindQT4.cmake where to find QT4

2009-05-25 Thread David Thompson
> > Have you ever tried setting the PATH? It is actually quite easy and does > > not involve "great contortions". > > > > All I do is execute > > > > PATH='/home/software/qtsdk-2009.02/qt/bin:'$PATH > > > > and from then on, cmake uses the version of Qt4 that I downloaded and > > installed in t

Re: [CMake] Suggesting to FindQT4.cmake where to find QT4

2009-05-25 Thread Jed Brown
Alan W. Irwin wrote: > Have you ever tried setting the PATH? It is actually quite easy and does > not involve "great contortions". > > All I do is execute > > PATH='/home/software/qtsdk-2009.02/qt/bin:'$PATH > > and from then on, cmake uses the version of Qt4 that I downloaded and > installed

Re: [CMake] Suggesting to FindQT4.cmake where to find QT4

2009-05-25 Thread Jed Brown
Jed Brown wrote: > Andreas Pakulat wrote: > >> Can you please elaborate, I have no idea what a/b or foo/bar refer to in >> this example. However qmake knows exactly where the headers and libs >> (and data) for the Qt its supposed to be used with are. So having the >> right qmake first in your PATH

Re: [CMake] Suggesting to FindQT4.cmake where to find QT4

2009-05-25 Thread Jed Brown
Andreas Pakulat wrote: > Can you please elaborate, I have no idea what a/b or foo/bar refer to in > this example. However qmake knows exactly where the headers and libs > (and data) for the Qt its supposed to be used with are. So having the > right qmake first in your PATH is the right thing to se

Re: [CMake] Suggesting to FindQT4.cmake where to find QT4

2009-05-25 Thread Andreas Pakulat
On 25.05.09 19:10:27, Jed Brown wrote: > Alan W. Irwin wrote: > > > My experience is that you can cleanly distinguish between various Qt4 > > versions by simply putting qmake for the version you want first on > > your PATH. > > Do you seriously consider this a solution, Of course, you do the sam

Re: [CMake] Suggesting to FindQT4.cmake where to find QT4

2009-05-25 Thread Alan W. Irwin
Alan W. Irwin wrote: My experience is that you can cleanly distinguish between various Qt4 versions by simply putting qmake for the version you want first on your PATH. Do you seriously consider this a solution, or just a hack that works for you? It breaks as soon as you have two packages /p

Re: [CMake] Suggesting to FindQT4.cmake where to find QT4

2009-05-25 Thread Jed Brown
Alan W. Irwin wrote: > My experience is that you can cleanly distinguish between various Qt4 > versions by simply putting qmake for the version you want first on > your PATH. Do you seriously consider this a solution, or just a hack that works for you? It breaks as soon as you have two packages

Re: [CMake] Suggesting to FindQT4.cmake where to find QT4

2009-05-25 Thread Alan W. Irwin
On 2009-05-25 13:40+1200 Matthew Huck wrote: Hi,  Is there a way to specify to FIND_PACKAGE (when in Module mode) a path on which to find Qt4, we have a system that has Qt3 (hence qmake) installed as a system package, and we have build Qt4 in our sandbox, and would like CMake to find that inst

Re: [CMake] Problem with ASM and COMPILE_DEFINITIONS

2009-05-25 Thread Tyler Roscoe
On Mon, May 25, 2009 at 12:13:13PM +0200, Marcel Loose wrote: > I get compilation errors, because CMake passes -D definitions to > the assembler, but the assembler doesn't accept preprocessor > definitions. These definitions were set a number of directory levels > higher, using add_definitions(). H

Re: [CMake] Visual Studio and dynamic project

2009-05-25 Thread Tyler Roscoe
On Mon, May 25, 2009 at 11:28:02AM +0200, ariasg...@gmx.de wrote: > IF( CMAKE_GENERATOR MATCHES "Visual Studio" ) > # this prevents generation of /debug or /release directories > SET_TARGET_PROPERTIES( ${PROJECTNAME} PROPERTIES PREFIX "../" ) > ENDIF( CMAKE_GENERATOR MATCHES "Visual St

Re: [CMake] Abuse of find_package COMPONENTS, or not?

2009-05-25 Thread Philip Lowman
On Mon, May 25, 2009 at 4:08 AM, Marcel Loose wrote: > OK, thanks Philip and others. > > BTW: FFTW is a library for calculating Fast Fourier Transforms. Version > 2 of that library supports both single and double precision, but they're > mutually exclusive, i.e. you cannot mix them. It also offer

Re: [CMake] adding files with Eclipse CDT4 Generator

2009-05-25 Thread Roland Waltersson
Thanks it works now. I did an out-of-source build but I forgot to clean some cache files from earlier tries. / Roland 2009/5/25 Eric Noulard > 2009/5/25 Roland Waltersson : > > Hi I have a small sample project in Eclipse. cmake generates it fine > > and it builds fine, but i can't see any sour

Re: [CMake] adding files with Eclipse CDT4 Generator

2009-05-25 Thread Eric Noulard
2009/5/25 Roland Waltersson : > Hi I have a small sample project in Eclipse. cmake generates it fine > and it builds fine, but i can't see any source code files in the > project browser. This is my CMakeLists.txt file: > > cmake_minimum_required(VERSION 2.6) > project(WINCABase) > add_library(WINCA

[CMake] Problem with ASM and COMPILE_DEFINITIONS

2009-05-25 Thread Marcel Loose
Hi all, I have a problem compiling assembly files. I followed the directions on the Wiki http://www.cmake.org/Wiki/CMake/Assembler to create the required CMake files. I get compilation errors, because CMake passes -D definitions to the assembler, but the assembler doesn't accept preprocessor defi

[CMake] adding files with Eclipse CDT4 Generator

2009-05-25 Thread Roland Waltersson
Hi I have a small sample project in Eclipse. cmake generates it fine and it builds fine, but i can't see any source code files in the project browser. This is my CMakeLists.txt file: cmake_minimum_required(VERSION 2.6) project(WINCABase) add_library(WINCABase constants.hpp exception.hpp version.hp

[CMake] Visual Studio and dynamic project

2009-05-25 Thread ariasgore
Hello, I have a project which is supposed to be built as static and dynamic one. Visual studio has this annoying behaviour to add always a debug and a release directoriy to the output directory. So this is fixed by prefixing the path with ../ IF( CMAKE_GENERATOR MATCHES "Visual Studio" )

Re: [CMake] Abuse of find_package COMPONENTS, or not?

2009-05-25 Thread Marcel Loose
OK, thanks Philip and others. BTW: FFTW is a library for calculating Fast Fourier Transforms. Version 2 of that library supports both single and double precision, but they're mutually exclusive, i.e. you cannot mix them. It also offers two ways of parallelization, mpi and threads, which are (AFAIK