[CMake] How to create an output that depends on an object file

2009-04-03 Thread Carlson Daniel
Hi! Is it possible to add a custom command that will produce some output file that depends on an object file. In other words, if an object file is rebuilt, I want to rebuild my output file. Regards Daniel Carlson ___ Powered by www.kitware.com Visit ot

Re: [CMake] Setting an environment variable when executing make script

2009-03-29 Thread Carlson Daniel
VAR will be set to 'some_info' and will NOT will be cleared when the script is terminated. What do you think about this? would this be possible? //Daniel 2009/3/29 Carlson Daniel > Thanks, but I do not think this is what I want. set($ENV{VAR} "some_data") > in

Re: [CMake] Setting an environment variable when executing make script

2009-03-29 Thread Carlson Daniel
ll set the environment variable? 2009/3/29 Philip Lowman > On Sun, Mar 29, 2009 at 9:04 AM, Carlson Daniel < > daniel.c.carl...@gmail.com> wrote: > >> Hello and sorry for my late response! >> >> I can not get this to work. When i execute the command COMMAND >>

Re: [CMake] Where are object files located, and how do I change the default extension?

2009-03-29 Thread Carlson Daniel
Yes, perhaps I already had some cmake generated build tree on my disk when i tried this. I will try once again with a clean build tomorrow. About the path-file: Does this really change any behavior or does it just print a nicer output? I have never seen a patch file before.. > > Did you add the

Re: [CMake] Setting an environment variable when executing make script

2009-03-29 Thread Carlson Daniel
MAND ${CMAKE_COMMAND} -E ${template.cmake} > ) > > and template.cmake would be: > > set(ENV{SOME_ENV_VAR} "${SOME_ENV_VAR_VALUE}") > execute_process(COMMAND ${CMAKE_C_COMPILER} some args) > > James > > On Thu, Mar 26, 2009 at 1:49 PM, Carlson Daniel > wrote: > > Hi

Re: [CMake] Need help with GLOB expression

2009-03-29 Thread Carlson Daniel
ipp_files "*.[hi]pp") >> set(files "${h_files}" "${hpp_ipp_files}") >> >> James >> >> On Sat, Mar 28, 2009 at 6:09 PM, Robert Dailey >> wrote: >> > Thank you. >> > For future reference, is the glob syntax for CMak

Re: [CMake] Need help with GLOB expression

2009-03-28 Thread Carlson Daniel
try: *.(h|hpp|ipp) 2009/3/28 Robert Dailey > Can I get some help with this? Sorry to rush, but I'm a bit blocked. I know > some of you may be tempted to ask my why I'm doing this and possibly even > try to change my mind, but with all do respect, I don't plan to avoid > globbing :) > > On Fri,

Re: [CMake] Forcing location of binary directory in CMake

2009-03-26 Thread Carlson Daniel
Why not use out of source build? http://wiki.qgis.org/qgiswiki/Building_with_CMake //Daniel 2009/3/26 Michael Jackson > I would use something like the following: > > get_filename_component(buildParent ${CMAKE_CURRENT_BINARY_DIR} PATH) > if (NOT ${buildParent} STREQUAL ${${PROJECT_NAME}_SOURCE_

[CMake] Setting an environment variable when executing make script

2009-03-26 Thread Carlson Daniel
Hi! I want to set an environment variable that is used to state the license file for my compiler. But, if I use the set-function the environment variable will be cleared when cmake terminates. Is there a way to set an environment variable at make file execution time? Daniel Carlson __

Re: [CMake] Where are object files located, and how do I change the default extension?

2009-03-26 Thread Carlson Daniel
Configuring done -- Generating done -- Build files have been written to: Z:/ssscde-vsd-ne-sw/eec3/02/output/make What have I done wrong? What variable have I changed? Regards, Daniel Carlson 2009/3/25 Alexander Neundorf > On Wednesday 25 March 2009, Carlson Daniel wrote: > > No i do n

Re: [CMake] Where are object files located, and how do I change the default extension?

2009-03-25 Thread Carlson Daniel
2009/3/25 Alexander Neundorf > On Wednesday 25 March 2009, Carlson Daniel wrote: > > Thank you Alexander! > > > > Although this was not the answers I wanted to hear... > > > > 1: I believe it is quite stupid to edit the platform files, right? If I > do >

Re: [CMake] Where are object files located, and how do I change the default extension?

2009-03-25 Thread Carlson Daniel
when an object file is updated, or some post compile test, etc.) Regards Daniel Carlson 2009/3/25 Alexander Neundorf > On Wednesday 25 March 2009, Carlson Daniel wrote: > > Best CMake users, > > > > I am using CMake in some smaller embedded projects which we have

[CMake] Where are object files located, and how do I change the default extension?

2009-03-25 Thread Carlson Daniel
Best CMake users, I am using CMake in some smaller embedded projects which we have converted from traditional make scripts. After all c-files has been compiled we want to perform some tests on the generated object-files. The tests we are running demands that the object files are denoted myFile.o a