[CMake] include_regular_expression question(Ubuntu CMake-2.6-patch0)

2009-02-13 Thread Pavel Shevaev
Hi folks, I'm new to CMake and quite happy about it(especially after having tried SCons and WAF), thank you guys, you're doing great job. The only issue bothering me at the moment is "include_regular_expression" command which I can't make work properly. I'm developing quite a large project which

Re: [CMake] Hi Beginner to Cmake and ITK

2009-02-13 Thread Sergey Rudchenko
You should start with the CMake manual, I think. Here you can find everything you need to start developing with CMake: http://www.cmake.org/Wiki/CMake -- Best regards, Sergey Rudchenko On Fri, 2009-02-13 at 09:38 -0800, neel vinoth wrote: > Hi All, > >I am jumping into ITK. > > D

Re: [CMake] CMake not honoring ENV variable with MSYS

2009-02-13 Thread David Cole
Interesting ProgramFiles, SystemRoot and other "pre-defined" Windows env vars show up as mixed case in my Windows cmd prompt, but in the MSYS prompt, all env vars are all caps. That is odd. Even odder that I never noticed that before... On Fri, Feb 13, 2009 at 12:36 PM, Mike Jackson wrote:

[CMake] Hi Beginner to Cmake and ITK

2009-02-13 Thread neel vinoth
Hi All,      I am jumping into ITK.   Downloaded following tools: Files available :   Cmake-2.4.8.zip Cmake-2.4.8-win32-x86.zip InsightToolkit-3.10.1.zip Micro soft Visual Studio 2008   I am interested to install the above software and run my first program using Cmake.   Please guide me.

Re: [CMake] CMake not honoring ENV variable with MSYS

2009-02-13 Thread Mike Jackson
From some experimentation and some anecdotal evidence on the internet it would seem that environment variables need to be ALL CAPITALS or MSYS will NOT pick them up. Odd. And in fact changing MXADataModel_INSTALL to MXADATAMODEL_INSTALL in the "My Computer" settings and in my .bash_profile all

Re: [CMake] CMake not honoring ENV variable with MSYS

2009-02-13 Thread David Cole
What do "set" and "export" report from your MSYS prompt as the value of MXADataModel_INSTALL? Is there a leftover CMake cache value for MXADataModel_INSTALL from before you set the env in your .bash_profile? Perhaps something else does a SET(ENV{MXADataModel_INSTALL} "VS9 path") "for you"...? On

Re: [CMake] CMake macro problem

2009-02-13 Thread Matthew Woehlke
Marcel Loose wrote: I have a problem with a self-written CMake macro, but I don't know exactly what the problem is. I have defined macro(SetIfElse var val def), which is supposed to assign the contents of val to var, when val is defined; otherwise it should assign the contents of def to var. Thi

[CMake] CMake not honoring ENV variable with MSYS

2009-02-13 Thread Mike Jackson
Not really sure if this is a CMake issue or and MSYS issue or "operator error" BUT when I run cmake -G "MSYS Makefiles" from an msys shell to configure my project there is one environment variable that is NOT being honored. The variable (MXADataModel_INSTALL) is defined in the "My Computer->P

[CMake] CMake macro problem

2009-02-13 Thread Marcel Loose
Hi, I have a problem with a self-written CMake macro, but I don't know exactly what the problem is. I have defined macro(SetIfElse var val def), which is supposed to assign the contents of val to var, when val is defined; otherwise it should assign the contents of def to var. This macro was inspi

Re: [CMake] Can FindBoost.cmake support STLport

2009-02-13 Thread Philip Lowman
On Fri, Feb 13, 2009 at 8:46 AM, Michael Jackson < mike.jack...@bluequartz.net> wrote: > Patch attached and also added to the bug report. Actually since it was part > of the "ABI" tag it was fairly simple to fix. Now wee need some volunteers > to test the patch/fix. I considered the same patch.

Re: [CMake] MSVC7.1 static link question

2009-02-13 Thread Luigi Calori
Philip Lowman ha scritto: On Thu, Feb 12, 2009 at 11:43 AM, Luigi Calori > wrote: Philip Lowman ha scritto: add_library(baz STATIC IMPORTED) set_target_properties(baz PROPERTIES IMPORTED_LOCATION_RELEASE ${CMAKE_CURRENT_

Re: [CMake] Can FindBoost.cmake support STLport

2009-02-13 Thread Michael Jackson
Patch attached and also added to the bug report. Actually since it was part of the "ABI" tag it was fairly simple to fix. Now wee need some volunteers to test the patch/fix. FindBoost.cmake.diff Description: Binary data _ Mike Jacks

[CMake] LINK_FLAGS does not seem to work

2009-02-13 Thread A Navaei
Hi, I'm trying to use LINK_FLAGS to pass some extra user defined arguments for linking WrapITK modules. However, effectively, the flags are never passed. Using LINK_FLAGS_RELEASE etc does not help this as well. Is this a cmake problem or am I supposed to use LINK_FLAGS explicitly in my linker? -

Re: [CMake] parsing config.h files and setting cmake variables accordingly

2009-02-13 Thread Michael Jackson
That is the best way to do it. Have all the options in your CMake file and let the user select which options they want to compile with. Then "configure_file" to create your config.h file. --- Mike Jackson www.bluequartz.net On Feb 13, 2009, at 7:45 AM, Clemens Arth wrote:

Re: [CMake] parsing config.h files and setting cmake variables accordingly

2009-02-13 Thread Clemens Arth
Hello, the config files were written some years ago simply to collect all the possibilities how to compile the projects. Unfortunately this was long before cmake came into play, thus the problem just came up now because I wanted to set up a system for nightly builds. Well, I think the best s

Re: [CMake] parsing config.h files and setting cmake variables accordingly

2009-02-13 Thread Pau Garcia i Quiles
Hello, I see. So, where is that config.h created? In your CMake build-system? is it from an external library? If the former, maybe you could use variables (cmake -DWITH_OPENGL:BOOL=1 ... ); if the latter, I don't know (the only thing I can come with at this moment to survive additional spaces, etc

Re: [CMake] parsing config.h files and setting cmake variables accordingly

2009-02-13 Thread Clemens Arth
Hi, thanks for the hint, but my problem is exactly the opposite of the one configure_file is solving. I'm already using configure_file in multiple places, but here I don't want to write config files, instead I want to parse their content back to cmake, and that's why I don't think configure_f

Re: [CMake] parsing config.h files and setting cmake variables accordingly

2009-02-13 Thread Pau Garcia i Quiles
Hello, Take a look at CONFIGURE_FILE On Fri, Feb 13, 2009 at 12:46 PM, Clemens Arth wrote: > Hi, > > I've got a question concerning string processing in cmake. Our software > framework consists of multiple libraries and has many different features to > be enabled or disabled using #defines. Fo

[CMake] parsing config.h files and setting cmake variables accordingly

2009-02-13 Thread Clemens Arth
Hi, I've got a question concerning string processing in cmake. Our software framework consists of multiple libraries and has many different features to be enabled or disabled using #defines. For example, one option is to compile with OpenGL or with OpenGL ES support. Thus in a config.h file