[CMake] What is the best autotools ==> CMake conversion script?

2008-05-02 Thread Alan W. Irwin
I have an opportunity to help convert a rather large software project from autotools to CMake, but I don't have much time/motivation to do all the routine conversions from autotools syntax to CMake syntax so I am hoping there is a script out there that will do most of that work. I did use such a

[CMake] Cmake subproject...

2008-05-02 Thread Michael Andronov
Let me explain briefly my question: I'm trying to create the set of CMakeLists.txt files, which will reproduce the VC++ solution/project(s) with the following topology: foo/ libproject samples/ sample1 sample2 The goal is to group samples1&2 which are

[CMake] cmake & sub-project(s)...

2008-05-02 Thread Michael Andronov
Let me explain briefly my question: I have the following dir structure with my source file: foo/ library/{ some code here for the library} samples/ example1/{ some code here for example 1} example2/{ some code here for example 2} My goal is to

Re: [CMake] Compiling x86 executable on amd64

2008-05-02 Thread Mathieu Malaterre
On Fri, May 2, 2008 at 10:17 PM, Mathieu Malaterre <[EMAIL PROTECTED]> wrote: > John, > > > On Fri, May 2, 2008 at 9:07 PM, John Doe <[EMAIL PROTECTED]> wrote: > > Mathieu, > > > > It is perfectly ok to redistribute libstdc++. You put it in your > > directory tree, not in the standard syste

Re: [CMake] Compiling x86 executable on amd64

2008-05-02 Thread Mathieu Malaterre
John, On Fri, May 2, 2008 at 9:07 PM, John Doe <[EMAIL PROTECTED]> wrote: > Mathieu, > > It is perfectly ok to redistribute libstdc++. You put it in your > directory tree, not in the standard system location. > > Setting LD_LIBRARY_PATH to the directory of your libstdc++ allows only > applica

Re: [CMake] Compiling x86 executable on amd64

2008-05-02 Thread John Doe
Mathieu, It is perfectly ok to redistribute libstdc++. You put it in your directory tree, not in the standard system location. Setting LD_LIBRARY_PATH to the directory of your libstdc++ allows only applications started in that shell environment to find it. You can use a wrapper script to set th

Re: [CMake] Compiling x86 executable on amd64

2008-05-02 Thread Mathieu Malaterre
John, On Fri, May 2, 2008 at 8:11 PM, John Doe <[EMAIL PROTECTED]> wrote: > > On Fri, May 2, 2008 at 12:54 PM, Mathieu Malaterre > <[EMAIL PROTECTED]> wrote: > > Hi there, > > > > Not really a cmake issue, but people maybe know the answer here... > > 1. > > I am trying to generate packa

[CMake] Compiling x86 executable on amd64

2008-05-02 Thread Mathieu Malaterre
Hi there, Not really a cmake issue, but people maybe know the answer here... 1. I am trying to generate package for x86 linux platform, since I have all the multilib (lib32 thingy) I thought this should be trivial to cross compile for this target (this is not a true cross compilation as the ta

Re: [CMake] CMake 2.6.0 RC 10 ready for testing

2008-05-02 Thread Bill Hoffman
Stefan wrote: Hi Bill, it works, thanks! To the Memory Problem. I tried this: MEMORYSTATUSEX ms; ms.dwLength = sizeof (ms); //<- If you don't do this, the values will be wrong! GlobalMemoryStatusEx(&ms); // Use this instead of GlobalMemoryStatus() unsigned __in

Re: [CMake] CMake 2.6.0 RC 10 ready for testing

2008-05-02 Thread Stefan
Hi Bill, it works, thanks! To the Memory Problem. I tried this: MEMORYSTATUSEX ms; ms.dwLength = sizeof (ms); //<- If you don't do this, the values will be wrong! GlobalMemoryStatusEx(&ms); // Use this instead of GlobalMemoryStatus() unsigned __int64 tv = ms.ullT

Re: [CMake] CMake 2.6.0 RC 10 ready for testing

2008-05-02 Thread Bill Hoffman
Stefan wrote: Perhaps there is a small bug. If I build Test with and within Visual Studio 2008 there will be every time the wrong build name "Win32-vs8". It have to be "Win32-vs9". OK, I see it, that is a bug in Modules/CTest.cmake. I have checked in a fix: $ cvs -q diff CTest.cmake Index: C

Re: [CMake] Including third party libraries

2008-05-02 Thread David Cole
GetPrerequisites.cmake is intended to be used from inside a CMake -P script, although there's nothing to prevent you from using it from a CMakeLists.txt. You could write a .cmake script that executes at install time to gather up the list of (presumably copy-able) 3rd party libraries and copy them i

Re: [CMake] ADD_DEFINITIONS in RC10

2008-05-02 Thread George Neill
Brad, > You should only see the new behavior if you call > > cmake_minimum_required(VERSION 2.6) # note value is 2.6 and not 2.4 ... and of course that is what I did! > or explicitly set this policy to NEW behavior. Otherwise CMake preserves > the old behavior and warns. If you require 2.6

Re: [CMake] ADD_DEFINITIONS in RC10

2008-05-02 Thread Brad King
George Neill wrote: Bill, Seems like RC10 handles quotes differently regarding ADD_DEFINITIONS, e.g. in 2.4 patch 6 ADD_DEFINITIONS( -DSOME_VALUE=\\"value\\" ) in 2.6 RC 10 ADD_DEFINITIONS( -DSOME_VALUE="value" ) Is this expected? Yes, according to new CMake Policy

Re: [CMake] Specifying Project Options in Visual Studio using CMakeLists.txt

2008-05-02 Thread Bill Hoffman
Malhotra, Anupam wrote: Hi I am creating a static library using cmake. A .dsw is created for Visual Studio 6. This library is using some existing libraries (say snmp.lib). I want to specify in CMakeLists.txt that this existing library be linked with the library I am creating. How can we sp

Re: [CMake] Setting "Link Library Dependencies" Flag in VS 2005

2008-05-02 Thread Bill Hoffman
Malhotra, Anupam wrote: Hi I have created a .sln (for VS 2005) using Cmake.In the sln, Project Properties->Configuration Properties->Librarian->Link Library Dependencies flag is by default set to NO. I want to set this flag value to YES using Cmake. How can this be achieved? I require this

[CMake] Including third party libraries

2008-05-02 Thread Hendrik Sattler
Hi, I try to include third party libraries when creating the Windows package. However, I didn't find an elegant way, yet, to do this. GetPrerequisites.cmake is fairly hard to use as including and using it makes it run at the wrong time. Running it in a CODE install command may work but doesn

[CMake] Setting "Link Library Dependencies" Flag in VS 2005

2008-05-02 Thread Malhotra, Anupam
Hi I have created a .sln (for VS 2005) using Cmake.In the sln, Project Properties->Configuration Properties->Librarian->Link Library Dependencies flag is by default set to NO. I want to set this flag value to YES using Cmake. How can this be achieved? I require this flag to be YES so that the l

Re: [CMake] CMake 2.6.0 RC 10 ready for testing

2008-05-02 Thread Stefan
Perhaps there is a small bug. If I build Test with and within Visual Studio 2008 there will be every time the wrong build name "Win32-vs8". It have to be "Win32-vs9". The TotalVirtualMemory and TotalPhysicalMemory is also wrong. I have 3GB Physical Memory, but perhaps that could be a problem with