[CMake] Run compiler through another tool?

2010-11-17 Thread Hariharan
Is it possible to run the compiler and linker through another command, say "time" or a custom script? In other words, I want the compile and link steps to run " gcc" and " ld". Regards, Hariharan ___ Powered by www.kitware

[CMake] Extra options for strip?

2011-03-28 Thread Hariharan
I'm trying to build a stripped target using install/strip with the function and line information retained. I need to pass the "--strip-debug" and "--keep-file-symbols" to the system strip binary because the default is to strip all symbols. Is there any way to achieve this using cmake? Regards, Har

[CMake] Set variable value based on generated files

2010-06-01 Thread Hariharan
First off, I apologize if this is a very newbie-level question. I need to set the value of a variable based on based on generated files, using the "file" command. Something like: file(GLOB varFoo "*.cpp") Here the cpp files are generated, so the value of varFoo comes up as empty when the build run

[CMake] add_custom_target problem

2010-06-09 Thread Hariharan Iyer
This may not be only because of using add_custom_target, but I have the following problem. I have a custom target that depends on a generated file, as: add_custom_target(foo DEPENDS bar) where "bar" is a generated file, generated using add_custom_command. If I build the "foo" target by itself

Re: [CMake] add_custom_target problem

2010-06-09 Thread Hariharan Iyer
On Wednesday 09 June 2010 09:35 PM, Michael Wild wrote: On 9. Jun, 2010, at 17:47 , Hariharan Iyer wrote: This may not be only because of using add_custom_target, but I have the following problem. I have a custom target that depends on a generated file, as: add_custom_target(foo DEPENDS bar

[CMake] Import library for executables?

2010-09-01 Thread Hariharan Iyer
Hello folks, I'm building an executable called foo.exe (project name foo) and a library called foo.lib (project name libfoo) that the executable depends on. I have an ImportLibrary line for foo.exe which looks like this: ImportLibrary="\lib\Debug\foo.lib" and an OutputFile line for foo.lib t