Re: [CMake] custom command and differences between VS2005 and VS2010

2012-02-21 Thread walter . schwarz
Hi Aaron, thank you very much für your analysis. we are currently using cmake, ver 2.8.2. the effect disappears with cmake 2.8.7. so we have to go for an upgrade. /thanks again and best regardsWalter Von:aaron.mead...@thomsonreuters.com An: walter.schw...@dzbank.de, cmake@cmake.o

Re: [CMake] Common Properties in Visual Studio

2012-02-21 Thread David Cole
Actually, a correction: Looks like the VS_DOTNET_REFERENCES target property is in CMake 2.8.7 already. $ cmake --help-property VS_DOTNET_REFERENCES cmake version 2.8.7 VS_DOTNET_REFERENCES Visual Studio managed project .NET references Adds one or more semicolon-delimite

Re: [CMake] Common Properties in Visual Studio

2012-02-21 Thread David Cole
It's not completely out of scope, but it's not exactly aligned with your typical cross-platform project either. So let's say it's low on the priority list. However, there are some new CMake properties in the 'next' and 'master' branches that will appear in the upcoming CMake 2.8.8 release. See, f

[CMake] problems configuring with multiple zlib version

2012-02-21 Thread Torsten Rohlfing
Hi All: I was wondering if someone has an idea how I could solve a problem I am having with CMake. Briefly, here's what I have: - Mac OS-X 10.6 system - System zlib (1.2.3) installed in /usr/include - MacPorts zlib (1.2.6) installed in /opt/local/include My project needs to include headers f

Re: [CMake] Common Properties in Visual Studio

2012-02-21 Thread Anders Backman
No plans on adding more thorough support for .NET projects or is that out of the scope for CMake? /A On Tue, Feb 21, 2012 at 11:57 AM, wrote: > *I’m pretty sure that CMake does not directly support .NET projects. > Here, we handle the csharp projects in visual studio and then use the > include_

Re: [CMake] cpack issues

2012-02-21 Thread Andrea Crotti
On 02/21/2012 06:25 PM, Eric Noulard wrote: 2012/2/21 Andrea Crotti: I'm trying to finally create an installer for my project, with CPack and NSIS. The project is really really simple, I just need to copy over a directory somewhere. And I did something like: get_filename_component(userprofile

Re: [CMake] Building and executing tests when building updated libraries

2012-02-21 Thread Eric Noulard
2012/2/21 Robert Dailey : > > I apologize if I sounded like your suggestion wasn't meaningful or useful. I > would much rather prefer to do it how you suggest (running all tests), but > this leaves me with some concerns: > > If the developer is running all unit tests on their local machine, what is

Re: [CMake] Building and executing tests when building updated libraries

2012-02-21 Thread Jean-Christophe Fillion-Robin
An possible alternative could be to associate one or more labels to your tests, then you should be able to run a specific subset of the test suite. See http://www.cmake.org/cmake/help/ctest-2-8-docs.html#opt:-Lregex--label-regexregex and http://www.cmake.org/cmake/help/cmake-2-8-docs.html#prop_tgt

Re: [CMake] Building and executing tests when building updated libraries

2012-02-21 Thread Robert Dailey
On Tue, Feb 21, 2012 at 1:15 PM, David Cole wrote: > On Tue, Feb 21, 2012 at 1:51 PM, Robert Dailey wrote: > > On Tue, Feb 21, 2012 at 12:37 PM, David Cole > wrote: > >> > >> On Tue, Feb 21, 2012 at 1:27 PM, Robert Dailey > wrote: > >>> > >>> Hi, > >>> > >>> I'm using Visual Studio as my gener

Re: [CMake] Building and executing tests when building updated libraries

2012-02-21 Thread David Cole
On Tue, Feb 21, 2012 at 1:51 PM, Robert Dailey wrote: > On Tue, Feb 21, 2012 at 12:37 PM, David Cole wrote: >> >> On Tue, Feb 21, 2012 at 1:27 PM, Robert Dailey wrote: >>> >>> Hi, >>> >>> I'm using Visual Studio as my generator for my CMake projects. As of >>> right now, I make my tests depend o

Re: [CMake] Building and executing tests when building updated libraries

2012-02-21 Thread Robert Dailey
On Tue, Feb 21, 2012 at 12:37 PM, David Cole wrote: > On Tue, Feb 21, 2012 at 1:27 PM, Robert Dailey wrote: > >> Hi, >> >> I'm using Visual Studio as my generator for my CMake projects. As of >> right now, I make my tests depend on the libraries they test. So for >> example, tests named: >> >> t

Re: [CMake] Building and executing tests when building updated libraries

2012-02-21 Thread David Cole
On Tue, Feb 21, 2012 at 1:27 PM, Robert Dailey wrote: > Hi, > > I'm using Visual Studio as my generator for my CMake projects. As of right > now, I make my tests depend on the libraries they test. So for example, > tests named: > > test_thingA > test_thingB > > will all depend on library: > > lib

[CMake] Building and executing tests when building updated libraries

2012-02-21 Thread Robert Dailey
Hi, I'm using Visual Studio as my generator for my CMake projects. As of right now, I make my tests depend on the libraries they test. So for example, tests named: test_thingA test_thingB will all depend on library: libfoo.lib When I build target "libfoo" in visual studio, it would be nice to

Re: [CMake] cpack issues

2012-02-21 Thread Eric Noulard
2012/2/21 Andrea Crotti : > I'm trying to finally create an installer for my project, with CPack and > NSIS. > > The project is really really simple, I just need to copy over a directory > somewhere. > And I did something like: > > get_filename_component(userprofile $ENV{USERPROFILE} REALPATH) > >

Re: [CMake] cpack issues

2012-02-21 Thread David Cole
Use: DESTINATION ${PROJECT_NAME} instead of the full path you're trying to use. If you use a full path in a CMake install rule, then CPack does not put it inside the directory that NSIS packs up to build the installer... If you use a non-full path, then for "make install" it gets put under CMA

[CMake] cpack issues

2012-02-21 Thread Andrea Crotti
I'm trying to finally create an installer for my project, with CPack and NSIS. The project is really really simple, I just need to copy over a directory somewhere. And I did something like: get_filename_component(userprofile $ENV{USERPROFILE} REALPATH) install( DIRECTORY ${EGG_BUILD_DIRECT

Re: [CMake] Common Properties in Visual Studio

2012-02-21 Thread aaron . meadows
I'm pretty sure that CMake does not directly support .NET projects. Here, we handle the csharp projects in visual studio and then use the include_external_msproject stuff to pull them in. In our case, we had to apply a patch to get it working correctly. (see: http://www.cmake.org/Bug/print

[CMake] Common Properties in Visual Studio

2012-02-21 Thread Anders Backman
Hi all. I was wondering if someone ever have used CMake to configure a .NET project, where one need to add References in: Common Properties -> Framework and References I need to locate some .dll-files from a .NET API and add those as references to a project to be able to build against it. I have

Re: [CMake] External projects and make clean

2012-02-21 Thread David Cole
On Tue, Feb 21, 2012 at 9:47 AM, Oliver Boesche wrote: > Hi, > > thanks. Its a tricky solution ;) > > I think this behavior as a flag for ExternalProject_Add could be > interesting for some people. > > Regards > Oliver > > > > -- > > Powered by www.kitware.com > > Visit other Kitware open-source p

Re: [CMake] External projects and make clean

2012-02-21 Thread Oliver Boesche
Hi, thanks. Its a tricky solution ;) I think this behavior as a flag for ExternalProject_Add could be interesting for some people. Regards Oliver -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messa

Re: [CMake] Shared intermediary files

2012-02-21 Thread John Drescher
On Mon, Feb 20, 2012 at 4:07 PM, Kevin Schmidt wrote: > Hello, > >   I’m in the process of converting over a large, monolithic tree with many > libraries from a custom build solution over to cmake.  So far, we’ve loved > it.  I am wondering about others’ solutions to a problem we have > encountere

Re: [CMake] Shared intermediary files

2012-02-21 Thread aaron . meadows
If possible, you might want to see about doing all the generation at CMake time. That should allow you to still build in parallel, unless you need them to be generated differently for each one (in which case, you should probably try to generate them in a subdirectory specific to each target).

Re: [CMake] Shared intermediary files

2012-02-21 Thread Kevin Schmidt
Yes, for clarity, we do generate the files at build time, not cmake time. Kevin From: aaron.mead...@thomsonreuters.com [mailto:aaron.mead...@thomsonreuters.com] Sent: Tuesday, February 21, 2012 9:14 AM To: Kevin Schmidt; cmake@cmake.org Subject: RE: [CMake] Shared intermediary files I'm not sur

Re: [CMake] Shared intermediary files

2012-02-21 Thread aaron . meadows
I'm not sure why there would be a conflict on the generated files (unless you are generating them at Build time rather than at CMake time), but you can probably solve the issue by making one version of the Library depend on the other version, thus preventing them from building at the same time.

Re: [CMake] Shared intermediary files

2012-02-21 Thread Kevin Schmidt
Hi - Actually, I have two calls to add_library, so they are in two projects, but ONE solution. They are built simultaneously by the BUILD_ALL target Kevin From: aaron.mead...@thomsonreuters.com [mailto:aaron.mead...@thomsonreuters.com] Sent: Tuesday, February 21, 2012 9:06 AM To: Kevin Schmid

Re: [CMake] Shared intermediary files

2012-02-21 Thread aaron . meadows
Can you clarify your setup just a bit? Do you have two ways you configure the build tree, once as Dynamic and once as Static libraries? And you are building both at the same time? Or Are you are calling add_library() twice with the same input files but specifying SHARED on one of the

Re: [CMake] multi platform path

2012-02-21 Thread Andrea Crotti
On 02/21/2012 01:39 PM, Rolf Eike Beer wrote: get_filename_component() Eike -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_F

Re: [CMake] custom command and differences between VS2005 and VS2010

2012-02-21 Thread aaron . meadows
I tried this out with VS 2010 SP0 Win64. Here's my CMakeLists: cmake_minimum_required(VERSION 2.8) project(Test CXX) file(WRITE foo.h "//Some Foo Header ") file(WRITE foo.cpp "int main(int argc, char** argv) { return 0; }\n") file(WRITE foo.txt "This is the foo text file (simulated c

Re: [CMake] multi platform path

2012-02-21 Thread Rolf Eike Beer
> I want to be able to have this simple translation between full path and > filename. > > For example = /very/long/path/file.py -> file.py > > So I did this quite ugly function: > > function (get_filename FULLPATH) > string(REPLACE "/" ";" p2list "${FULLPATH}") > list(REVERSE p2list) >

Re: [CMake] more targets to run in parallel

2012-02-21 Thread Andrea Crotti
Anyway just to answer myself, I managed to solve all my problems. Now I first generate at cmake file a file with some paths, and from these paths I generate all the targets that I need. I also create a list with all the targets to make it easy from other targets to depend on them. Here below t

[CMake] multi platform path

2012-02-21 Thread Andrea Crotti
I want to be able to have this simple translation between full path and filename. For example = /very/long/path/file.py -> file.py So I did this quite ugly function: function (get_filename FULLPATH) string(REPLACE "/" ";" p2list "${FULLPATH}") list(REVERSE p2list) list(GET p2list 0 la