[CMake] Can cmake do configure tests?

2009-08-05 Thread Joseph Garvin
One of the cool features of autotools is configure tests -- actually invoking the compiler on a small sample program and seeing if it's successful. Does CMake do this or do you have to depend on #ifdef SOME_PLATFORM blocks to enable/disable features? ___

Re: [CMake] CodeBlocks Generator misses custom targets

2009-08-05 Thread David Cole
On Wed, Aug 5, 2009 at 4:57 PM, Alexander Neundorf wrote: > On Thursday 30 July 2009, David Cole wrote: > > That looks like line 201 in CMake-2-6-4 source tree. In CVS HEAD, this > has > > moved to line 390, but the same code is still there... > > > > Looks like that whole else chunk should be rem

Re: [CMake] Displaying sub projects in Eclipse

2009-08-05 Thread Michael Jackson
On Aug 5, 2009, at 5:05 PM, Alexander Neundorf wrote: On Monday 03 August 2009, Dim wrote: Hi group, I'm using cmake 2.6.4 for cross platform development in Windows and Linux. On Windows we're using Visual Studio 9 and on Linux Eclipse with CDT (4 or 5 - still not decided). The code ha

Re: [CMake] Obj in Debug and Release

2009-08-05 Thread Alexander Neundorf
On Tuesday 04 August 2009, Pierre-Julien Villoud wrote: > Sorry, I did not precise that I work with GCC. > Thanks for your answer, I thought about that solution but I wondered if > something specific existed... Using separate build directories for release and debug is the correct way to do it if

Re: [CMake] Displaying sub projects in Eclipse

2009-08-05 Thread Alexander Neundorf
On Monday 03 August 2009, Dim wrote: > Hi group, > > I'm using cmake 2.6.4 for cross platform development in Windows and Linux. > > On Windows we're using Visual Studio 9 and on Linux Eclipse with CDT (4 or > 5 - still not decided). > > The code have a lot of projects and they're nicely presented i

Re: [CMake] How to use FIND_PACKAGE(xxx) ?

2009-08-05 Thread Alexander Neundorf
On Sunday 02 August 2009, alexis lameire wrote: > Date: Sun, 2 Aug 2009 00:31:31 +0200 > Subject: Re: [CMake] How to use FIND_PACKAGE(xxx) ? > From: mort.mo...@gmail.com > To: alexisis-pristont...@hotmail.com > CC: cmake@cmake.org > > Yeah I realized that it does not exists for Elastix, but it exis

Re: [CMake] CodeBlocks Generator misses custom targets

2009-08-05 Thread Alexander Neundorf
On Thursday 30 July 2009, David Cole wrote: > That looks like line 201 in CMake-2-6-4 source tree. In CVS HEAD, this has > moved to line 390, but the same code is still there... > > Looks like that whole else chunk should be removed. Unless somebody can say > why it's there...? In order to keep so

Re: [CMake] CheckIncludeFile, CheckIncludeFiles, CheckIncludeFileCXX

2009-08-05 Thread Alexander Neundorf
Hi Pau, On Thursday 30 July 2009, Pau Garcia i Quiles wrote: > Hello, > > What's the difference between CheckIncludeFile and CheckIncludeFiles ? > Implementations are slightly different but they seem to perform the > same exact check With CheckIncludeFiles you can give a list of headers, like che

Re: [CMake] set_property(TARGET bla PROPERTY LINK_INTERFACE_LIBRARIES "")

2009-08-05 Thread Alexander Neundorf
On Wednesday 29 July 2009, Mathieu Malaterre wrote: > Hi there, > > Just a quick question, let say I am working on a very large project > with multiple libraries, is there a way to say that the default > property of for all generated shared library is "" (empty string) ? Which property do you me

Re: [CMake] TRY_COMPILE help...

2009-08-05 Thread Alexander Neundorf
On Monday 27 July 2009, Ashwin Chandra wrote: > I am using a custom compiler and during the initialization of CMake, the > CMakeTestCCompiler.cmake is invoked which tries to compile a simple > program. However the compile fails it is because of the flags passed to > the compiler. > > For example, t

Re: [CMake] specific target to gettext

2009-08-05 Thread Alexander Neundorf
On Tuesday 28 July 2009, alexis lameire wrote: ... > thenks i have not all understand but i have try this :) > http://pastie.org/561548 > i don't understand the problem of create_pot and update_po target :) > i wouldn't this target launch at all :) it's easyeast to me to have this > target :) and

Re: [CMake] Modules standardization...

2009-08-05 Thread Matt McCormick
Asmodehn Shade writes: > > Hi,First sorry if this has been addressed in the past but I could find any reference to it...I am using a Module FindFoo.cmake.I know I am expecting it to set FOO_FOUND and other variables such as FOO_INCLUDE_DIR, FOO_LIBRARIES, etc.My question is : what is the exact o

[CMake] UseSWIG creates module instead of shared library, which can't be dynamically loaded

2009-08-05 Thread Stephen Roderick
The existing UseSWIG.cmake file creates a MODULE and not a SHARED library. The module is unuseable by any program trying to load dynamic libraries (eg wrapped Java). The attached patch fixes this problem for our situations. Demonstrated on both Mac OS X Leopard and Ubuntu Jaunty. Is this a

Re: [CMake] windows build add compiler flag

2009-08-05 Thread j s
Thank you. Applying this procedure for CMAKE_C_FLAGS and CMAKE_CXX_FLAGS fixed the problem. Juan On Wed, Aug 5, 2009 at 3:41 AM, Dominik Szczerba wrote: > try something like > > IF(MSVC) >SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /fp:strict") > ENDIF(MSVC) > > - Dominik > > j

Re: [CMake] LINK_DIRECTORIES ?

2009-08-05 Thread Andreas Pakulat
On 05.08.09 07:52:32, James C. Sutherland wrote: > > On Aug 5, 2009, at 1:33 AM, motes motes wrote: > >> I get the point of INCLUDE_DIRECTORIES (the various files used must be >> located). But what is the point of LINK_DIRECTORIES and >> TARGET_LINK_LIBRARIES? >> > > LINK_DIRECTORIES specifies t

Re: [CMake] LINK_DIRECTORIES ?

2009-08-05 Thread James C. Sutherland
On Aug 5, 2009, at 1:33 AM, motes motes wrote: I get the point of INCLUDE_DIRECTORIES (the various files used must be located). But what is the point of LINK_DIRECTORIES and TARGET_LINK_LIBRARIES? LINK_DIRECTORIES specifies the path to search for libraries whereas TARGET_LINK_LIBRARIES

[CMake] Modules standardization...

2009-08-05 Thread Asmodehn Shade
Hi, First sorry if this has been addressed in the past but I could find any reference to it... I am using a Module FindFoo.cmake. I know I am expecting it to set FOO_FOUND and other variables such as FOO_INCLUDE_DIR, FOO_LIBRARIES, etc. My question is : what is the exact operation that I should

[CMake] Underlinking / Overlinking

2009-08-05 Thread Mathieu Malaterre
I found the following two pages very interesting, as it describes tools to inspect overlinking and underlinking. http://wiki.mandriva.com/en/Development/Tasks/Packaging/Problems/Underlinking http://wiki.mandriva.com/en/Overlinking Eg. $ ldd -u -r /usr/lib/libvtkRendering.so Unused direct dependen

Re: [CMake] windows build add compiler flag

2009-08-05 Thread Dominik Szczerba
try something like IF(MSVC) SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /fp:strict") ENDIF(MSVC) - Dominik j s wrote: In my CMakeLists.txt, how do I tell the windows build to use "/fp:strict" as a c and c++ compiler flag for any conceivable build type? ADD_DEFINITIONS does no

[CMake] windows build add compiler flag

2009-08-05 Thread j s
In my CMakeLists.txt, how do I tell the windows build to use "/fp:strict" as a c and c++ compiler flag for any conceivable build type? ADD_DEFINITIONS does not appear to work. Thanks, Juan ___ Powered by www.kitware.com Visit other Kitware open-source

[CMake] LINK_DIRECTORIES ?

2009-08-05 Thread motes motes
I get the point of INCLUDE_DIRECTORIES (the various files used must be located). But what is the point of LINK_DIRECTORIES and TARGET_LINK_LIBRARIES? In a CMakeLists.txt file I have: .. INCLUDE_DIRECTORIES(${ELASTIX_SRC}/Components/Optimizers/StandardGradientDescent) ... ... LINK_DIRECTORIES(${E