[CMake] getting "new/updated" variable from PARENT SCOPE

2010-06-03 Thread Doug Reiland
Is there a way to an updated variable from parent scope? For example, I am in a sub-directory set(FOO 2 PARENT_SCOPE) ... retrieve FOO from PARENT_SCOPE I know sub-directory would get a copy of FOO, if it existed, when it was entered. I played with set/get_property() for this, but which work

Re: [CMake] cmake - escape/delay variable expansion

2010-06-03 Thread Doug Reiland
On 6/2/10 9:24 PM, Michael Hertling wrote: >> >> On 06/02/2010 10:24 PM, Doug Reiland wrote: >> >>> >>> Is there anyway to do in a generic fashion? >>> For example, I don't know what all the variables are. >>> I can be certain that they are valid

Re: [CMake] cmake - escape/delay variable expansion

2010-06-02 Thread Doug Reiland
Hertling wrote: > On 06/02/2010 08:37 PM, Doug Reiland wrote: >> Sorry for another newbie question. >> >> Say, to setup a variable as follow so ${build-dir} doesn't get expanded >> set(foo \${build-dir}/foo.c) >> >> How would a expand foo so ${build-dir}

[CMake] cmake - escape/delay variable expansion

2010-06-02 Thread Doug Reiland
Sorry for another newbie question. Say, to setup a variable as follow so ${build-dir} doesn't get expanded set(foo \${build-dir}/foo.c) How would a expand foo so ${build-dir} gets expanded? The following don't seem to do it. message(${foo}) message(${${foo}}) ___

Re: [CMake] Extending a target??

2010-06-02 Thread Doug Reiland
, 2010 at 12:44 PM, Michael Wild wrote: > > On 2. Jun, 2010, at 17:51 , Doug Reiland wrote: > >> Yeah, I know I can do that. >> I want to add foo3.c after the add_library() has been done. >> The example is simple, but it describes what I hope to do. >> >> >>

Re: [CMake] list of lists -possible?

2010-06-02 Thread Doug Reiland
perfect, thankyou! On Wed, Jun 2, 2010 at 12:34 PM, Clinton Stimpson wrote: > On Wednesday, June 02, 2010 10:24:44 am Doug Reiland wrote: >> Is it possible to implement a list of lists. The following example >> shows cmake ending up with a list with 6 elements instead of &

[CMake] list of lists -possible?

2010-06-02 Thread Doug Reiland
Is it possible to implement a list of lists. The following example shows cmake ending up with a list with 6 elements instead of a list with 2 elements with each element being a list with 3 elements set(fooa 1 2 3) set(foob a b c) message(${fooa}) message("${fooa}") message("${foob}") list(APPEND f

[CMake] Extending a target??

2010-06-02 Thread Doug Reiland
Is there anything to "add to" a target after it is declared? For example, add_library(foo STATIC foo1.c foo2.c) add_some_more(foo foo3.c) or add_some_more(foo foo3.o) If not, feasibility on how it could be implemented? Thanks, Doug ___ Powered

[CMake] shared directory with subdirs and custom command

2010-06-02 Thread Doug Reiland
I am porting a library over to cmake. This library is built both shared and static AND has several composite objects that get linked in. For example, subdir-a had makefile that compiled and linked a1.c a2.c into ../a.o top directory linked in a.o into it's libs (shared and static) I have conver

Re: [CMake] newbie question - what targets are supported?

2010-05-28 Thread Doug Reiland
argets are supported? On 05/28/2010 12:14 AM, Doug Reiland wrote: okay, I have ordered the book. But, in the meantime. I am continuing to port a large library from in-house build to cmake for evaluation. What builtin targets are supported? On *nix, run CMake on a directory with an empty CMak

[CMake] newbie question - what targets are supported?

2010-05-27 Thread Doug Reiland
okay, I have ordered the book. But, in the meantime. I am continuing to port a large library from in-house build to cmake for evaluation. What builtin targets are supported? I got lex, gperf, and other kinds of stuff. A (pseudo code) didn't work: add_library(foo *.c *.gpref) thanks! ___

[CMake] cmake - library help

2010-05-27 Thread Doug Reiland
tephen CIV NSWCDD, W15 wrote: >> From: cmake-boun...@cmake.org on behalf of Doug Reiland >> Sent: Thu 5/27/2010 11:14 AM >> To: cmake@cmake.org >> Subject: [CMake] cmake - library help >> >> First, I am new to cmake and exploring converting our home grown build &

[CMake] cmake - library help

2010-05-27 Thread Doug Reiland
First, I am new to cmake and exploring converting our home grown build system. How would I code this up in cmake I have composite objects that need to be added to a share library add_library(foo a.c b.c c.c) I also need x.o in the library AND x.o linked from: subdir-a/aa.c subdir-a/bb.c Thank