[CMake] Transitively including dependency source directories

2011-10-14 Thread Robert Dailey
If I have the following target dependency chain: A >> B >> C >> D Then target "D" must have the include directories (defined on a per project basis with a cache variable currently) for C, B, and A. Right now I'm trying to implement the logic for this myself using macro recursion, but as of right

Re: [CMake] CTest of multiple projects

2011-10-14 Thread David Thompson
Hi Tim, Is it possible to make CTest aware of other CTest things going on? For example, let's say I have a continuous build set up for two different projects, and each has 1 test in it that uses all the processors in the machine. Is it possible to set it up in a such a way that the two di

[CMake] CTest of multiple projects

2011-10-14 Thread Tim Gallagher
Hi, Is it possible to make CTest aware of other CTest things going on? For example, let's say I have a continuous build set up for two different projects, and each has 1 test in it that uses all the processors in the machine. Is it possible to set it up in a such a way that the two different p

Re: [CMake] cmake and multiple projects, targets and versions

2011-10-14 Thread Alexander Neundorf
On Friday 14 October 2011, Gints Gailītis wrote: > Hi cmake list! > > I've been playing around with cmake for a couple of weeks now, and am > loving (almost) every minute of it. A thing I really like about cmake > and that I feel will add the greatest value for me, besides the > cross-platform cap

Re: [CMake] install() question

2011-10-14 Thread Robert Dailey
On Fri, Oct 14, 2011 at 11:22 AM, Hendrik Sattler wrote: > > Yes. Compilation of a project should always be possible without polluting > the system. > > For other programs or libraries in the same source tree, install() is not > the right thing. > You have several options: > a) > Copy the headers i

Re: [CMake] install() question

2011-10-14 Thread Hendrik Sattler
On Thu, 13 Oct 2011 12:09:41 -0500, Robert Dailey wrote: First of all I'm using cmake 2.8.6 and generating Visual Studio 2003 projects with it. There is a particular project that needs to first copy its header files to a specific directory in a specific structure. After that, all other project

Re: [CMake] Project that compiles all the files when a single file is modified

2011-10-14 Thread Mario Rodríguez
> > Date: Fri, 14 Oct 2011 14:28:29 + (UTC) > From: Wolfgang Maus > Subject: Re: [CMake] Project that compiles all the files when a single >file is modified > To: cmake@cmake.org > Message-ID: > Content-Type: text/plain; charset=utf-8 > > Mario Rodr?guez writes: > > > > > > > Hi, > >

Re: [CMake] Delivering imported libraries with binaries on Linux

2011-10-14 Thread Michael Hertling
On 10/12/2011 07:38 PM, Harelick, Matthew wrote: > Hello: > > > I am working on a project that relies on third party libraries, for example > MyVendor.so. I am using cmake 2.6. [...] Uh-oh... No chance to upgrade? > [...] When the third party shared object is checked out, it is installed in

Re: [CMake] Project that compiles all the files when a single file is modified

2011-10-14 Thread Wolfgang Maus
Mario Rodríguez writes: > > > Hi, > > I've reported an issue to Ms VS 2010 developer team and they have told me that its a corrupted project settings problem: > > http://social.msdn.microsoft.com/Forums/en/msbuild/thread/ceb35fc3-c8b3-49f9-b124-2fb5f8c7d5f0 > > > > "since I use VS 2010 SP1

Re: [CMake] Common CMake setup for several projects

2011-10-14 Thread Paul Hansen
Thanks! On Fri, Oct 14, 2011 at 2:05 PM, John Drescher wrote: > On Fri, Oct 14, 2011 at 7:33 AM, Paul Hansen > wrote: > > Hi > > > > Is it possible to make a common CMake setup that can be used in several > > projects? > > > > The projects are independant but do use common libraries. Would be n

Re: [CMake] Project that compiles all the files when a single file is modified

2011-10-14 Thread Rolf Eike Beer
> Doing cmake from scratch doesnt help, it seems to have the same behaviour > always... > Same application with same CMakelist.txt files with CMake VS2008 project > generator works fine, so CMake structure is OK. So the answer is that I'm > asking how can I manage to create a correct project. You

Re: [CMake] Project that compiles all the files when a single file is modified

2011-10-14 Thread Mario Rodríguez
Doing cmake from scratch doesnt help, it seems to have the same behaviour always... Same application with same CMakelist.txt files with CMake VS2008 project generator works fine, so CMake structure is OK. So the answer is that I'm asking how can I manage to create a correct project. 2011/10/14 Dav

Re: [CMake] Common CMake setup for several projects

2011-10-14 Thread John Drescher
On Fri, Oct 14, 2011 at 7:33 AM, Paul Hansen wrote: > Hi > > Is it possible to make a common CMake setup that can be used in several > projects? > > The projects are independant but do use common libraries. Would be nice to > set this up in one place and not in the CMakeLists.txt for each project.

Re: [CMake] complete change of compilation flags for a single file

2011-10-14 Thread Michael Hertling
On 10/11/2011 11:42 AM, Ilias Miroslav wrote: > Dear experts, > > within our cmake project there are needs to change compilation flags of some > individual files, especially we want sometimes to decrease optimization level. > > For that there is a command "set_source_file_properties", but among

[CMake] Common CMake setup for several projects

2011-10-14 Thread Paul Hansen
Hi Is it possible to make a common CMake setup that can be used in several projects? The projects are independant but do use common libraries. Would be nice to set this up in one place and not in the CMakeLists.txt for each project. Can it be done "preprocessor-like": #include "/path/to/common/C

Re: [CMake] Project that compiles all the files when a single file is modified

2011-10-14 Thread David Cole
If you're asking us what to do about this, then perhaps just blow your build tree away and regenerate a new one...? If it's really a corrupted project settings file, then you can just blow away the project settings files and the problem should be gone. If you're simply reporting this issue here so

[CMake] Project that compiles all the files when a single file is modified

2011-10-14 Thread Mario Rodríguez
Hi, I've reported an issue to Ms VS 2010 developer team and they have told me that its a corrupted project settings problem: http://social.msdn.microsoft.com/Forums/en/msbuild/thread/ceb35fc3-c8b3-49f9-b124-2fb5f8c7d5f0 "since I use VS 2010 SP1, when I modify only one file of a project, then th

Re: [CMake] Separating SET_TARGET_PROPERTIES() for different configurations

2011-10-14 Thread Daniel Dekkers
Hi, I don't think the [variant=###] method works to separate SET_TARGET_PROPERTIES() to different configurations in Xcode (4.0.2). If I try this (simple example)... SET_TARGET_PROPERTIES( ${APP_NAME} PROPERTIES XCODE_ATTRIBUTE_COMPRESS_PNG_FILES[variant=Debug] YES ) SET_TARGET_PROPERTIES( ${AP